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
3c5efc7b
Commit
3c5efc7b
authored
Feb 26, 2023
by
wangqibing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理抖动优化kf
parent
3ad91fc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
0 deletions
+35
-0
Track3D.cpp
BaseTracker/Track3D.cpp
+32
-0
Track3D.h
BaseTracker/Track3D.h
+2
-0
TrackingRos.cpp
TrackingRos.cpp
+1
-0
No files found.
BaseTracker/Track3D.cpp
View file @
3c5efc7b
...
...
@@ -155,6 +155,7 @@ void Track3D::Update(const std::vector<float>& data)
{
std
::
vector
<
float
>
out
;
UpdateDataCheck
(
data
,
out
);
SetQ
(
data
);
BaseTrack
::
Update
(
out
);
}
...
...
@@ -527,4 +528,34 @@ int Track3D::GetColorInfo(std::string& color)
}
}
return
0
;
}
void
Track3D
::
SetQ
(
std
::
vector
<
float
>&
data
)
{
if
(
data
.
size
()
<
10
)
{
return
;
}
if
(
kf_
==
nullptr
)
{
return
;
}
float
score
=
data
[
9
];
//置信度
float
ratio
=
1
;
if
(
score
<
0.4
)
{
ratio
=
10
;
}
else
if
(
score
>
0.7
)
{
ratio
=
1
;
}
else
{
ratio
=
pow
(
10
,(
0.7
-
score
)
*
33
);
}
kf_
->
R_
=
kf_
->
R_
*
ratio
;
return
;
}
\ No newline at end of file
BaseTracker/Track3D.h
View file @
3c5efc7b
...
...
@@ -49,6 +49,8 @@ public:
virtual
void
UpdateDataCheck
(
const
std
::
vector
<
float
>&
data
,
std
::
vector
<
float
>&
out
);
//对于输入数据进行修正
virtual
void
SetValues
(
std
::
vector
<
float
>&
data
);
void
SetQ
(
std
::
vector
<
float
>&
data
)
//lyc 2.13
virtual
int
GetIouData
(
std
::
vector
<
float
>&
data
,
int
&
obj_type
);
static
void
MeasureIouData
(
const
std
::
vector
<
float
>&
input
,
std
::
vector
<
float
>&
out
,
int
&
obj_type
);
...
...
TrackingRos.cpp
View file @
3c5efc7b
...
...
@@ -520,6 +520,7 @@ void TrackingRos::ThreadTrackingProcess()
data
.
push_back
(
obj
.
w
);
data
.
push_back
(
obj
.
h
);
data
.
push_back
(
obj
.
dataSource
);
data
.
push_back
(
obj
.
score
);
//置信度
input
.
emplace_back
(
data
);
}
std
::
vector
<
uint64_t
>
detectionsId
;
...
...
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