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
ad1b1941
Commit
ad1b1941
authored
Jan 14, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交修改
parent
59fd78c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
TrackingRosEx.cpp
TrackingRosEx.cpp
+9
-9
No files found.
TrackingRosEx.cpp
View file @
ad1b1941
...
...
@@ -554,19 +554,19 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
{
for
(
auto
&
obj
:
cloudPtr
->
array
)
{
//if (abs(obj.x - objMsg.x) < std::max(objMsg.l * 2.0, (double)3.0) && abs(obj.y - objMsg.y) < std::max(objMsg.w * 2.0, (double)3.0))
//{
// duplicate = 1;
// break;
//}
cv
::
RotatedRect
rect1
=
cv
::
RotatedRect
(
cv
::
Point2f
(
objMsg
.
x
,
objMsg
.
y
),
cv
::
Size2f
(
objMsg
.
l
,
objMsg
.
w
),
objMsg
.
rot_y
);
cv
::
RotatedRect
rect2
=
cv
::
RotatedRect
(
cv
::
Point2f
(
obj
.
x
,
obj
.
y
),
cv
::
Size2f
(
obj
.
l
,
obj
.
w
),
obj
.
rot_y
*
180
/
3.1415926
);
float
rate
=
calcIntersectionRate
(
rect1
,
rect2
);
if
(
rate
>
m_lidar_camera_msg_iou
)
if
(
abs
(
obj
.
x
-
objMsg
.
x
)
<
std
::
max
(
objMsg
.
l
*
1.2
,
(
double
)
2.0
)
&&
abs
(
obj
.
y
-
objMsg
.
y
)
<
std
::
max
(
objMsg
.
w
*
1.2
,
(
double
)
2.0
))
{
duplicate
=
1
;
break
;
}
//cv::RotatedRect rect1 = cv::RotatedRect(cv::Point2f(objMsg.x, objMsg.y), cv::Size2f(objMsg.l, objMsg.w), objMsg.rot_y);
//cv::RotatedRect rect2 = cv::RotatedRect(cv::Point2f(obj.x, obj.y), cv::Size2f(obj.l, obj.w), obj.rot_y * 180 / 3.1415926);
//float rate = calcIntersectionRate(rect1, rect2);
//if (rate > m_lidar_camera_msg_iou)
//{
// duplicate = 1;
// break;
//}
}
}
if
(
duplicate
==
0
)
...
...
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