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
1b33606d
Commit
1b33606d
authored
Dec 09, 2021
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
09c7c972
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
Track3D.cpp
BaseTracker/Track3D.cpp
+5
-3
TrackingRos.cpp
TrackingRos.cpp
+2
-2
No files found.
BaseTracker/Track3D.cpp
View file @
1b33606d
...
...
@@ -90,7 +90,7 @@ double Track3D::CalculateIou(const std::vector<float>& data)
std
::
vector
<
float
>
states
;
GetStateData
(
states
);
SDK_LOG
(
SDK_INFO
,
"calculate size1 = %d, size2 = %d"
,
states
.
size
(),
data
.
size
());
//
SDK_LOG(SDK_INFO, "calculate size1 = %d, size2 = %d",states.size(),data.size());
//std::vector<float> truth_poses{ states[0], states[1], states[2],0, 0, states[6], states[3]/2, states[4]/2, states[5]/2 };
//std::vector<float> landmark_poses{ data[0], data[1], data[2],0, 0, data[6], data[3]/2, data[4]/2, data[5]/2 };
...
...
@@ -100,9 +100,9 @@ double Track3D::CalculateIou(const std::vector<float>& data)
uint64_t
begin
=
GetCurTime
();
//double iou_3d = CuboidIoU(truth_poses, landmark_poses);
double
iou_2d
=
calcIOU
(
rect1
,
rect2
);
SDK_LOG
(
SDK_INFO
,
" iou_2d = %f"
,
iou_2d
);
double
iou_3d
=
0
;
if
(
iou_2d
>
0
)
{
//SDK_LOG(SDK_INFO, " iou_2d = %f", iou_2d);
double
tru_minz
=
states
[
2
]
-
states
[
5
];
double
tru_maxz
=
states
[
2
]
+
states
[
5
];
...
...
@@ -117,7 +117,9 @@ double Track3D::CalculateIou(const std::vector<float>& data)
iou_3d
=
iou_2d
*
height_iou
;
}
}
SDK_LOG
(
SDK_INFO
,
"CuboidIoU time = %llu"
,
GetCurTime
()
-
begin
);
//SDK_LOG(SDK_INFO, "CuboidIoU time = %llu", GetCurTime() - begin);
if
(
iou_3d
>
m_iou_threshold
)
SDK_LOG
(
SDK_INFO
,
"iou_3d = %f"
,
iou_3d
);
return
iou_3d
;
}
...
...
TrackingRos.cpp
View file @
1b33606d
...
...
@@ -86,9 +86,9 @@ void TrackingRos::ThreadTrackingProcess()
std
::
map
<
uint64_t
,
int
>
updateId
;
std
::
vector
<
uint64_t
>
lostId
;
SDK_LOG
(
SDK_INFO
,
"run before"
);
uint64_t
begin
=
GetCurTime
(
);
m_tracker
.
Run
(
input
,
detectionsId
,
updateId
,
lostId
);
SDK_LOG
(
SDK_INFO
,
"
run after"
);
SDK_LOG
(
SDK_INFO
,
"
m_tracker.Run time = %llu"
,
GetCurTime
()
-
begin
);
std
::
map
<
uint64_t
,
std
::
shared_ptr
<
Track3D
>
>&
trackers
=
m_tracker
.
GetStates
();
...
...
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