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
e8dc35ec
Commit
e8dc35ec
authored
Oct 12, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加人脸图片日志
parent
712b9db5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
AlgorithmTaskManage.cpp
+2
-0
mainwindow.cpp
+3
-6
No files found.
AlgorithmTaskManage.cpp
View file @
e8dc35ec
...
...
@@ -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
);
...
...
mainwindow.cpp
View file @
e8dc35ec
...
...
@@ -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