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
402424fb
Commit
402424fb
authored
Aug 23, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超时去掉图片上传03
parent
eeeda510
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
5 deletions
+32
-5
CameraHandle.cpp
+32
-5
No files found.
CameraHandle.cpp
View file @
402424fb
...
...
@@ -625,9 +625,19 @@ void CameraHandle::updateImage(const cv::Mat & frame,qint64 currentTime){
}
qInfo
()
<<
"工作人数==>"
<<
worker
;
vides_data
::
response
*
resp
=
httpService
.
httpPostFacePopulation
(
imgs
,
faSize
,
worker
,
sSn
,
currentTime
);
if
(
resp
->
code
!=
0
)
{
qInfo
()
<<
"人数变化推送信息推送失败"
;
if
(
resp
->
msg
==
"TimeoutError"
)
{
QByteArray
num_imgs
;
httpService
.
setHttpUrl
(
httpUrl
);
vides_data
::
response
*
img_resp
=
httpService
.
httpPostFacePopulation
(
num_imgs
,
faSize
,
worker
,
sSn
,
currentTime
);
if
(
img_resp
->
code
!=
0
)
{
qInfo
()
<<
"不加图片人数变化推送信息推送失败"
;
}
instace
.
deleteObj
(
img_resp
);
}
}
instace
.
deleteObj
(
resp
);
faceMapWorker
.
setX
(
faSize
);
faceMapWorker
.
setY
(
uniforms
);
...
...
@@ -658,9 +668,18 @@ void CameraHandle::updateImage(const cv::Mat & frame,qint64 currentTime){
mapFaces
.
insert
(
std
::
make_pair
(
face
.
id
,
faceReconition
));
if
(
resp
->
code
!=
0
)
{
qInfo
()
<<
"识别人code"
<<
resp
->
code
;
qInfo
()
<<
"识别人msg"
<<
resp
->
msg
;
qInfo
()
<<
"识别人脸信息推送失败"
<<
face
.
id
;
if
(
resp
->
msg
==
"TimeoutError"
)
{
faceReconition
.
img
.
clear
();
httpService
.
setHttpUrl
(
httpUrl
);
vides_data
::
response
*
img_resp
=
httpService
.
httpPostFaceReconition
(
faceReconition
);
if
(
img_resp
->
code
!=
0
)
{
qInfo
()
<<
"不加图片人脸信息推送失败"
;
qInfo
()
<<
"不加图片识别人code"
<<
resp
->
code
;
qInfo
()
<<
"不加图片识别人msg"
<<
resp
->
msg
;
qInfo
()
<<
"不加图片识别人脸信息推送失败"
<<
face
.
id
;
}
instace
.
deleteObj
(
img_resp
);
}
}
instace
.
deleteObj
(
resp
);
}
...
...
@@ -676,7 +695,15 @@ void CameraHandle::updateImage(const cv::Mat & frame,qint64 currentTime){
httpService
.
setHttpUrl
(
httpUrl
);
vides_data
::
response
*
resp
=
httpService
.
httpPostUniforms
(
imgs
,
strUniform
,
sSn
,
currentTime
);
if
(
resp
->
code
!=
0
)
{
qInfo
()
<<
"推送未穿工服人数失败"
;
if
(
resp
->
msg
==
"TimeoutError"
)
{
QByteArray
num_imgs
;
httpService
.
setHttpUrl
(
httpUrl
);
vides_data
::
response
*
img_resp
=
httpService
.
httpPostUniforms
(
num_imgs
,
strUniform
,
sSn
,
currentTime
);
if
(
img_resp
->
code
!=
0
)
{
qInfo
()
<<
"不加图片推送未穿工服人数失败"
;
}
instace
.
deleteObj
(
img_resp
);
}
}
instace
.
deleteObj
(
resp
);
}
...
...
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