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
35c19ac6
Commit
35c19ac6
authored
Feb 17, 2025
by
guof
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-1007583' into 'release'
过滤特殊的sn01 See merge request
!88
parents
840b2a7e
debe9bfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
CameraHandle.cpp
+8
-6
No files found.
CameraHandle.cpp
View file @
35c19ac6
...
...
@@ -405,10 +405,8 @@ int CameraHandle::callbackFunction(XSDK_HANDLE hObject, QString &szString) {
cv
::
Mat
image
;
MediaFaceImage
*
mediaFaceImage
=
MediaFaceImage
::
getInstance
();
qint64
currentTime
=
QDateTime
::
currentSecsSinceEpoch
();
if
(
sSn
!=
"9189806d008ac359"
){
mediaFaceImage
->
FaceImageCallBack
(
hObject
,
this
->
channel
,
image
,
sSn
);
}
mediaFaceImage
->
FaceImageCallBack
(
hObject
,
this
->
channel
,
image
,
sSn
);
if
(
image
.
empty
())
{
qInfo
()
<<
"FaceImageCallBack抓图失败,尝试调用FaceHkImageCallBack"
;
...
...
@@ -479,18 +477,22 @@ void CameraHandle::sdkDevSnapSyn(XSDK_HANDLE hDevice, int nChannel){
cv
::
Mat
image
;
MediaFaceImage
*
mediaFaceImage
=
MediaFaceImage
::
getInstance
();
qint64
currentTime
=
QDateTime
::
currentSecsSinceEpoch
();
int
ret
=
mediaFaceImage
->
FaceImageCallBack
(
hDevice
,
nChannel
,
image
,
sSn
);
int
ret
=-
1
;
if
(
sSn
!=
"9189806d008ac359"
){
ret
=
mediaFaceImage
->
FaceImageCallBack
(
hDevice
,
nChannel
,
image
,
sSn
);
}
if
(
ret
<
0
)
{
if
(
!
hk_status
){
if
(
threeConsecutiveImage
())
return
;
}
else
{
int
hk_channel
=
mediaFaceImage
->
getIPChannelInfo
(
hk_Device
,
QString
(
loginParam
->
sDevId
));
if
(
hk_channel
<
0
){
qInfo
()
<<
QString
(
"SN(%1): sdkDevSnapSyn 通过IP获取到对应通道号失败"
).
arg
(
sSn
);
qInfo
()
<<
QString
(
"SN(%1):
NVR=>
sdkDevSnapSyn 通过IP获取到对应通道号失败"
).
arg
(
sSn
);
return
;
}
int
retHk
=
mediaFaceImage
->
FaceHkImageCallBack
(
hk_Device
,
hk_channel
,
image
,
sSn
);
if
(
retHk
<
0
){
qInfo
()
<<
QString
(
"SN(%1): NVR=>FaceHkImageCallBack 句柄获取图片失败"
).
arg
(
sSn
);
if
(
threeConsecutiveImage
())
return
;
}
else
{
// NVR抓图成功,则重置计数器
...
...
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