Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gamera_videos_no_ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liusq
gamera_videos_no_ui
Commits
116af852
Commit
116af852
authored
Oct 12, 2024
by
郭峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-1007488' into 'release'
Feature 1007488 See merge request
!72
parents
07a92e1b
0394c9ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
AlgorithmTaskManage.cpp
+2
-0
FaceReconitionHandle.cpp
+1
-0
MqttSubscriber.cpp
+2
-2
mainwindow.cpp
+3
-6
No files found.
AlgorithmTaskManage.cpp
View file @
116af852
...
...
@@ -60,6 +60,8 @@ void AlgorithmTaskManage::initLicensePlateManage(const QString &modelPaths,bool
}
void
AlgorithmTaskManage
::
initFaceReconitionHandle
(
std
::
map
<
QString
,
QString
>&
maps
,
int
numberFaces
,
float
confidence
){
for
(
int
i
=
0
;
i
<
faceLen
;
++
i
)
{
static
int
i11
=
0
;
qInfo
()
<<
"人脸initSourceImageMap次数"
<<++
i11
;
FaceReconitionHandle
*
faceReconitionHandle
=
new
FaceReconitionHandle
();
faceReconitionHandle
->
initSourceImageMap
(
maps
,
numberFaces
,
confidence
);
...
...
FaceReconitionHandle.cpp
View file @
116af852
...
...
@@ -5,6 +5,7 @@
#include <iostream>
#define cimg_display 0
#define cimg_use_jpeg
#include "CImg.h"
using
namespace
cimg_library
;
...
...
MqttSubscriber.cpp
View file @
116af852
...
...
@@ -80,7 +80,7 @@ void MqttSubscriber::start() {
// 设置连接选项
MQTTAsync_connectOptions
conn_opts
=
MQTTAsync_connectOptions_initializer
;
conn_opts
.
keepAliveInterval
=
20
;
conn_opts
.
keepAliveInterval
=
35
;
conn_opts
.
cleansession
=
1
;
QByteArray
bUsername
=
config
.
username
.
toUtf8
();
...
...
@@ -165,7 +165,7 @@ void MqttSubscriber::onSubscribeFailure(MQTTAsync_failureData* response) {
}
void
MqttSubscriber
::
connectionLost
(
char
*
cause
)
{
qInfo
()
<<
"连接丢失"
;
qInfo
()
<<
"连接丢失"
<<
cause
;
if
(
cause
)
{
qInfo
()
<<
"Cause:"
<<
cause
;
}
...
...
mainwindow.cpp
View file @
116af852
...
...
@@ -433,6 +433,8 @@ void MainWindow::updateLocalFace(const QString &httpurl) {
if
(
cloudImageMap
.
empty
())
{
// 如果云端映射现在为空,移除所有特征
//faceRecognition.featureRemove();
static
int
i11
=
0
;
qInfo
()
<<
"algorithmTaskManage.modifyImageFeature次数"
<<++
i11
;
algorithmTaskManage
.
modifyImageFeature
(
localImageMap
,
faceNumbers
,
confidence
,
true
);
}
else
{
//float confidence=qSetting->value("devices/confidence").toFloat();
...
...
@@ -573,11 +575,7 @@ void MainWindow::startCamera(const QString &httpurl){
//parameter.rtspUrl=std::move(QString("rtsp://admin:@%1/stream1").arg(ipAddress));
this
->
initCameras
(
parameter
,
devConfig
,
device
.
areas
,
reStatus
.
camera_info_list
);
}
else
{
CameraHandle
*
indexHandle
=
findHandle
(
device
.
sSn
);
if
(
indexHandle
!=
nullptr
&&
device
.
is_reboot
){
indexHandle
->
deviceReboot
();
}
else
{
else
{
auto
it
=
this
->
faceDetectionParkingPushs
.
find
(
key
);
if
(
it
!=
this
->
faceDetectionParkingPushs
.
end
())
{
CameraHandle
*
offlineCameraHandle
=
it
->
second
;
// 注意使用->second获取值
...
...
@@ -615,7 +613,6 @@ void MainWindow::startCamera(const QString &httpurl){
}
}
}
}
this
->
deleteCloudNotCamer
(
localDevices
,
devices
.
list
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment