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
ec4d59c6
Commit
ec4d59c6
authored
Aug 06, 2024
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车牌过滤掉nullptr
parent
dd5b951a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
CameraHandle.cpp
+1
-3
HumanDetection.cpp
+0
-1
LicensePlateRecognition.cpp
+4
-2
MqttSubscriber.h
+1
-0
mainwindow.cpp
+0
-1
No files found.
CameraHandle.cpp
View file @
ec4d59c6
...
@@ -407,7 +407,7 @@ int CameraHandle::callbackFunction(XSDK_HANDLE hObject, QString &szString) {
...
@@ -407,7 +407,7 @@ int CameraHandle::callbackFunction(XSDK_HANDLE hObject, QString &szString) {
qInfo
()
<<
"图像尺寸或通道数不正确,需排查原因"
;
qInfo
()
<<
"图像尺寸或通道数不正确,需排查原因"
;
return
-
1
;
return
-
1
;
}
}
q
Debug
()
<<
"callbackFunction request to: "
<<
sSn
;
q
Info
()
<<
"callbackFunction request to: "
<<
sSn
;
updateImage
(
image
,
currentTime
);
updateImage
(
image
,
currentTime
);
}
}
...
@@ -582,8 +582,6 @@ bool CameraHandle::isChanged(const QPoint& newInfo, const QPoint& current) {
...
@@ -582,8 +582,6 @@ bool CameraHandle::isChanged(const QPoint& newInfo, const QPoint& current) {
void
CameraHandle
::
updateImage
(
const
cv
::
Mat
&
frame
,
qint64
currentTime
){
void
CameraHandle
::
updateImage
(
const
cv
::
Mat
&
frame
,
qint64
currentTime
){
Common
&
instace
=
Common
::
getInstance
();
Common
&
instace
=
Common
::
getInstance
();
qInfo
()
<<
"=============================>"
;
qInfo
()
<<
"=============================>"
;
AlgorithmTaskManage
&
algorithmTaskManage
=
AlgorithmTaskManage
::
getInstance
();
AlgorithmTaskManage
&
algorithmTaskManage
=
AlgorithmTaskManage
::
getInstance
();
...
...
HumanDetection.cpp
View file @
ec4d59c6
...
@@ -18,7 +18,6 @@ HumanDetection::~HumanDetection(){
...
@@ -18,7 +18,6 @@ HumanDetection::~HumanDetection(){
if
(
detector
!=
nullptr
){
if
(
detector
!=
nullptr
){
TCV_ReleaseHumanDetector
(
detector
);
TCV_ReleaseHumanDetector
(
detector
);
qInfo
()
<<
"工服析构"
<<++
i
;
qInfo
()
<<
"工服析构"
<<++
i
;
detector
=
nullptr
;
detector
=
nullptr
;
}
}
}
}
...
...
LicensePlateRecognition.cpp
View file @
ec4d59c6
...
@@ -25,8 +25,10 @@ LicensePlateRecognition::LicensePlateRecognition(){
...
@@ -25,8 +25,10 @@ LicensePlateRecognition::LicensePlateRecognition(){
LicensePlateRecognition
::~
LicensePlateRecognition
(){
LicensePlateRecognition
::~
LicensePlateRecognition
(){
static
int
i
=
0
;
static
int
i
=
0
;
HLPR_ReleaseContext
(
ctx
);
if
(
ctx
!=
nullptr
){
qInfo
()
<<
"车牌析构"
<<++
i
;
HLPR_ReleaseContext
(
ctx
);
qInfo
()
<<
"车牌析构"
<<++
i
;
}
}
}
...
...
MqttSubscriber.h
View file @
ec4d59c6
...
@@ -18,6 +18,7 @@ private:
...
@@ -18,6 +18,7 @@ private:
MqttSubscriber
&
operator
=
(
const
MqttSubscriber
&
)
=
delete
;
MqttSubscriber
&
operator
=
(
const
MqttSubscriber
&
)
=
delete
;
MQTTAsync
client
;
MQTTAsync
client
;
vides_data
::
MqttConfig
config
;
vides_data
::
MqttConfig
config
;
void
onConnect
(
MQTTAsync_successData
*
response
);
void
onConnect
(
MQTTAsync_successData
*
response
);
...
...
mainwindow.cpp
View file @
ec4d59c6
...
@@ -78,7 +78,6 @@ MainWindow::MainWindow()
...
@@ -78,7 +78,6 @@ MainWindow::MainWindow()
QString
tempPath
=
qSetting
->
value
(
"devices/sz_temp_path"
).
toString
();
QString
tempPath
=
qSetting
->
value
(
"devices/sz_temp_path"
).
toString
();
int
sdk_handle
=
mediaFaceImage
->
SdkInit
(
configPath
,
tempPath
);
int
sdk_handle
=
mediaFaceImage
->
SdkInit
(
configPath
,
tempPath
);
qDebug
()
<<
"句柄为:"
<<
sdk_handle
;
if
(
sdk_handle
<
0
){
if
(
sdk_handle
<
0
){
qInfo
()
<<
"sdk初始化失败"
;
qInfo
()
<<
"sdk初始化失败"
;
return
;
return
;
...
...
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