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
abd7baf1
Commit
abd7baf1
authored
Feb 17, 2025
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤特殊的日志
parent
50f755c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
CameraHandle.cpp
+3
-1
mainwindow.cpp
+5
-0
No files found.
CameraHandle.cpp
View file @
abd7baf1
...
...
@@ -477,15 +477,17 @@ void CameraHandle::sdkDevSnapSyn(XSDK_HANDLE hDevice, int nChannel){
cv
::
Mat
image
;
MediaFaceImage
*
mediaFaceImage
=
MediaFaceImage
::
getInstance
();
qint64
currentTime
=
QDateTime
::
currentSecsSinceEpoch
();
int
ret
=
0
;
int
ret
=
-
1
;
if
(
sSn
!=
"9189806d008ac359"
){
ret
=
mediaFaceImage
->
FaceImageCallBack
(
hDevice
,
nChannel
,
image
,
sSn
);
}
qInfo
()
<<
QString
(
"SN(%1): NVR=>sdkDevSnapSyn 通过IP获取到对应通道号"
).
arg
(
sSn
);
if
(
ret
<
0
)
{
if
(
!
hk_status
){
if
(
threeConsecutiveImage
())
return
;
}
else
{
int
hk_channel
=
mediaFaceImage
->
getIPChannelInfo
(
hk_Device
,
QString
(
loginParam
->
sDevId
));
qInfo
()
<<
QString
(
"SN(%1): NVR=>hk_channel getIPChannelInfo:%2"
).
arg
(
sSn
).
arg
(
hk_channel
);
if
(
hk_channel
<
0
){
qInfo
()
<<
QString
(
"SN(%1): NVR=>sdkDevSnapSyn 通过IP获取到对应通道号失败"
).
arg
(
sSn
);
return
;
...
...
mainwindow.cpp
View file @
abd7baf1
...
...
@@ -96,6 +96,7 @@ MainWindow::MainWindow():isResetting(false)
NET_DVR_Init
();
hk_Device
=-
1
;
nvr_status
=
config
.
nvrConfig
.
isOn
;
qInfo
()
<<
QString
(
"nvr_status状态"
).
arg
(
config
.
nvrConfig
.
isOn
);
connect
(
this
,
SIGNAL
(
shutdownSignals
(
QString
,
int
)),
this
,
SLOT
(
clearHandle
(
QString
,
int
)),
Qt
::
QueuedConnection
);
...
...
@@ -577,6 +578,7 @@ void MainWindow::startCamera(const QString &httpurl){
reStatus
.
mac
=
std
::
move
(
is_mac
);
HttpService
httpService
(
httpurl
);
vides_data
::
response
*
re
=
httpService
.
httpFindCameras
(
serialNumber
,
devices
);
qInfo
()
<<
QString
(
"config.nvrConfig.isOn getDeviceStatus"
).
arg
(
getDeviceStatus
(
hk_Device
));
if
(
config
.
nvrConfig
.
isOn
&&
!
getDeviceStatus
(
hk_Device
)
){
nvr_status
=
true
;
loginNetDvr
(
config
.
nvrConfig
.
ip
,
config
.
nvrConfig
.
username
,
config
.
nvrConfig
.
password
,
config
.
nvrConfig
.
port
);
...
...
@@ -664,6 +666,8 @@ void MainWindow::startCamera(const QString &httpurl){
camera_info
.
mac
=
localDevice
->
mac
;
reStatus
.
camera_info_list
.
push_front
(
camera_info
);
offlineCameraHandle
->
setHkDevice
(
nvr_status
,
hk_Device
);
qInfo
()
<<
QString
(
" offlineCameraHandle->setHkDevice:%1,%2"
).
arg
(
nvr_status
).
arg
(
hk_Device
);
HttpService
http_gb28181
(
httpurl
);
vides_data
::
response
*
res
=
http_gb28181
.
httpFindGb28181Config
(
camera_info
.
sSn
);
if
(
res
->
code
!=
0
){
...
...
@@ -1122,6 +1126,7 @@ void MainWindow::initCameras(vides_data::cameraParameters ¶meter,vides_data:
initDevConfigSyn
(
cameraHandle
,
devConfig
);
cameraHandle
->
sdkDevSetAlarmListener
(
sdk_handle
,
0
);
qInfo
()
<<
QString
(
"initCameras->setHkDevice:%1,%2"
).
arg
(
nvr_status
).
arg
(
hk_Device
);
cameraHandle
->
setHkDevice
(
nvr_status
,
hk_Device
);
int
synTime
=
devConfig
.
camera
.
devSnapSynTimer
;
uint64
face_frequency
=
devConfig
.
humanConfig
.
faceFrequency
;
...
...
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