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
a0f7c794
Commit
a0f7c794
authored
Sep 28, 2022
by
oscar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交trycatch异常处理opencv的函数。
parent
44232608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Track3D.cpp
BaseTracker/Track3D.cpp
+13
-1
No files found.
BaseTracker/Track3D.cpp
View file @
a0f7c794
...
...
@@ -242,7 +242,19 @@ double Track3D::CalculateIou(const std::vector<float>& data)
// iou_3d = iou_2d * height_iou;
// }
//}
double
area
=
calcIntersectionArea
(
rect1
,
rect2
);
double
area
=
0.0
f
;
try
{
area
=
calcIntersectionArea
(
rect1
,
rect2
);
}
catch
(
cv
::
Exception
&
e
)
{
const
char
*
err_msg
=
e
.
what
();
SDK_LOG
(
SDK_INFO
,
"calcIntersectionArea catch error err_msg = %s,rect1 = [%f,%f][%f,%f][%f],rect2 = [%f,%f][%f,%f][%f]"
,
err_msg
,
rect1
.
center
.
x
,
rect1
.
center
.
y
,
rect1
.
size
.
width
,
rect1
.
size
.
height
,
rect1
.
angle
,
rect2
.
center
.
x
,
rect2
.
center
.
y
,
rect2
.
size
.
width
,
rect2
.
size
.
height
,
rect2
.
angle
);
area
=
0.0
f
;
}
if
(
area
>
0
)
{
//double interHeight = 0.0f;
...
...
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