Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
J
jfx_kalman_filter_src
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oscar
jfx_kalman_filter_src
Commits
6ad05d9c
Commit
6ad05d9c
authored
May 27, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交更新
parent
55bc8f51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
Track3D.h
BaseTracker/Track3D.h
+2
-0
TrackingRos.cpp
TrackingRos.cpp
+13
-1
No files found.
BaseTracker/Track3D.h
View file @
6ad05d9c
...
...
@@ -59,6 +59,8 @@ public:
uint64_t
m_lastLastTimestamp
=
0
;
//记录上上一次的时间戳
double
m_center_rot_y
=
0
;
//通过计算轨迹上的五个点算出来的方向
std
::
string
m_number
;
//记录车牌号,出现一次就一直记录
};
double
correct_angle
(
std
::
vector
<
point2d
>&
points
);
TrackingRos.cpp
View file @
6ad05d9c
...
...
@@ -478,6 +478,18 @@ void TrackingRos::ThreadTrackingProcess()
}
if
(
iter
.
second
->
m_obj
)
last_type
=
iter
.
second
->
m_obj
->
type
;
if
(
iter
.
second
->
m_number
.
empty
()
&&
!
obj
.
license_plate_number
.
empty
())
{
iter
.
second
->
m_number
=
obj
.
license_plate_number
;
}
else
if
(
!
iter
.
second
->
m_number
.
empty
()
&&
!
obj
.
license_plate_number
.
empty
())
{
if
(
iter
.
second
->
m_number
!=
obj
.
license_plate_number
)
{
SDK_LOG
(
SDK_INFO
,
"car number change old = %s, new = %s"
,
iter
.
second
->
m_number
.
c_str
(),
obj
.
license_plate_number
.
c_str
());
}
}
obj
.
license_plate_number
=
iter
.
second
->
m_number
;
iter
.
second
->
m_obj
=
std
::
make_shared
<
jfx_common_msgs
::
det_tracking
>
(
obj
);
}
else
...
...
@@ -567,7 +579,7 @@ void TrackingRos::ThreadTrackingProcess()
target
.
reportType
=
"Pedestrian"
;
else
target
.
reportType
=
"Other_Truck"
;
target
.
vehicleNum
=
"0"
;
target
.
vehicleNum
=
obj
.
license_plate_number
;
target
.
confidence
=
obj
.
score
*
100
;
target
.
location
.
x
=
obj
.
Lat
;
target
.
location
.
y
=
obj
.
Long
;
...
...
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