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
634ea671
Commit
634ea671
authored
Nov 14, 2024
by
郭峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-1007650' into 'release'
盒子-GB28181配置增加本地SIP端口 See merge request
!80
parents
da58530e
945df3da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CameraHandle.cpp
+4
-2
FaceReconitionHandle.cpp
+1
-1
HttpService.cpp
+1
-0
No files found.
CameraHandle.cpp
View file @
634ea671
...
...
@@ -1164,7 +1164,7 @@ void CameraHandle::initWorkSpVMn(vides_data::responseGb28181 *gb28181, QString &
toJsonObject
[
"uiAlarmStateLoseEnable"
]
=
"0xFFFFFFFF"
;
toJsonObject
[
"uiAlarmStateMotionEnable"
]
=
"0xFFFFFFFF"
;
toJsonObject
[
"uiAlarmStatePerformanceEnable"
]
=
"0xFFFFFFFF"
;
toJsonObject
[
"sUdpPort"
]
=
5060
;
toJsonObject
[
"sUdpPort"
]
=
gb28181
->
sUdpPort
;
// 生成 workSpWMn
QJsonDocument
doc
(
toJsonObject
);
...
...
@@ -1312,6 +1312,7 @@ void CameraHandle::updateSdkDevSpvMn(vides_data::responseGb28181 *gb28181){
const
char
*
szDeviceNO
=
config
.
szDeviceNO
.
ToString
();
const
char
*
szServerDn
=
config
.
szServerDn
.
ToString
();
const
char
*
szServerNo
=
config
.
szServerNo
.
ToString
();
int
u_port
=
config
.
sUdpPort
.
ToInt
();
bool
isEqual
=
(
szCsIP
==
gb28181
->
sip_ip
&&
sCsPort
==
gb28181
->
sip_port
&&
szServerNo
==
gb28181
->
serial
&&
...
...
@@ -1320,6 +1321,7 @@ void CameraHandle::updateSdkDevSpvMn(vides_data::responseGb28181 *gb28181){
iHsIntervalTime
==
gb28181
->
heartbeat_interval
&&
szConnPass
==
gb28181
->
password
&&
szDeviceNO
==
gb28181
->
device_id
&&
u_port
==
gb28181
->
sUdpPort
&&
Camreaid
==
gb28181
->
channel_id
);
if
(
!
isEqual
){
config
.
Camreaid
.
InitArraySize
(
64
);
...
...
@@ -1347,7 +1349,7 @@ void CameraHandle::updateSdkDevSpvMn(vides_data::responseGb28181 *gb28181){
config
.
szServerNo
.
SetValue
(
sz_ServerNo
);
config
.
sCsPort
.
SetValue
(
gb28181
->
sip_port
);
config
.
sUdpPort
.
SetValue
(
5060
);
config
.
sUdpPort
.
SetValue
(
gb28181
->
sUdpPort
);
QByteArray
&&
bSzServerDn
=
gb28181
->
realm
.
toUtf8
();
char
*
sz_ServerDn
=
bSzServerDn
.
data
();
...
...
FaceReconitionHandle.cpp
View file @
634ea671
...
...
@@ -204,7 +204,7 @@ void FaceReconitionHandle::featureRemoveMap(std::map<QString, QString> &maps){
}
cv
::
Mat
FaceReconitionHandle
::
loadImageWithS
TB
(
const
QString
&
filename
)
{
cv
::
Mat
FaceReconitionHandle
::
loadImageWithS
tb
(
const
QString
&
filename
)
{
int
width
,
height
,
channels
;
QByteArray
&&
b_filename
=
filename
.
toUtf8
();
char
*
c_filename
=
b_filename
.
data
();
...
...
HttpService.cpp
View file @
634ea671
...
...
@@ -442,6 +442,7 @@ vides_data::response*HttpService::httpFindGb28181Config(QString &serialNumber){
response
->
heartbeat_interval
=
data
[
"heartbeat_interval"
].
toInt
();
response
->
device_id
=
data
[
"device_id"
].
toString
();
response
->
channel_id
=
data
[
"channel_id"
].
toString
();
response
->
sUdpPort
=
data
[
"local_port"
].
toInt
();
resp
->
data
=
response
;
resp
->
msg
=
map
[
"message"
].
toString
();
}
else
{
...
...
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