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
c16961f4
Commit
c16961f4
authored
Feb 20, 2025
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善NVR处理01
parent
2114aaf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
CameraHandle.cpp
+1
-2
mainwindow.cpp
+6
-2
No files found.
CameraHandle.cpp
View file @
c16961f4
...
...
@@ -481,8 +481,7 @@ void CameraHandle::sdkDevSnapSyn(XSDK_HANDLE hDevice, int nChannel){
if
(
sSn
!=
"9189806d008ac359"
){
ret
=
mediaFaceImage
->
FaceImageCallBack
(
hDevice
,
nChannel
,
image
,
sSn
);
}
qInfo
()
<<
QString
(
"SN(%1): NVR=>sdkDevSnapSyn 通过IP获取到对应通道号"
).
arg
(
sSn
);
if
(
ret
<
0
)
{
if
(
ret
<
0
||
image
.
empty
())
{
if
(
!
hk_status
){
if
(
threeConsecutiveImage
())
return
;
}
else
{
...
...
mainwindow.cpp
View file @
c16961f4
...
...
@@ -583,8 +583,12 @@ void MainWindow::startCamera(const QString &httpurl){
vides_data
::
response
*
re
=
httpService
.
httpFindCameras
(
serialNumber
,
devices
);
if
(
config
.
nvrConfig
.
isOn
&&
!
getDeviceStatus
(
hk_Device
)
){
nvr_status
=
true
;
loginNetDvr
(
config
.
nvrConfig
.
ip
,
config
.
nvrConfig
.
username
,
config
.
nvrConfig
.
password
,
config
.
nvrConfig
.
port
);
int
res
=
loginNetDvr
(
config
.
nvrConfig
.
ip
,
config
.
nvrConfig
.
username
,
config
.
nvrConfig
.
password
,
config
.
nvrConfig
.
port
);
if
(
res
<
0
){
nvr_status
=
false
;
}
else
{
nvr_status
=
true
;
}
}
else
if
(
!
config
.
nvrConfig
.
isOn
){
nvr_status
=
false
;
}
...
...
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