Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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
submodule
opencv_contrib
Commits
a0896c7b
Commit
a0896c7b
authored
Aug 31, 2017
by
Vladislav Sovrasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracking: update tresholds in regression tests of the TLD
parent
895a9143
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
17 deletions
+13
-17
multiTracker.cpp
modules/tracking/src/multiTracker.cpp
+1
-1
tldDetector.cpp
modules/tracking/src/tldDetector.cpp
+2
-2
tldDetector.hpp
modules/tracking/src/tldDetector.hpp
+2
-1
tldTracker.cpp
modules/tracking/src/tldTracker.cpp
+2
-2
tldUtils.cpp
modules/tracking/src/tldUtils.cpp
+3
-8
test_trackers.cpp
modules/tracking/test/test_trackers.cpp
+3
-3
No files found.
modules/tracking/src/multiTracker.cpp
View file @
a0896c7b
...
...
@@ -408,7 +408,7 @@ namespace cv
////To fix: Check the paper, probably this cause wrong learning
//
labPatch
.
isObject
=
srValue
>
tld
::
THETA_NN
;
labPatch
.
shouldBeIntegrated
=
abs
(
srValue
-
tld
::
THETA_NN
)
<
0.1
;
labPatch
.
shouldBeIntegrated
=
abs
(
srValue
-
tld
::
THETA_NN
)
<
tld
::
CLASSIFIER_MARGIN
;
patches
[
k
].
push_back
(
labPatch
);
//
...
...
modules/tracking/src/tldDetector.cpp
View file @
a0896c7b
...
...
@@ -420,7 +420,7 @@ namespace cv
////To fix: Check the paper, probably this cause wrong learning
//
labPatch
.
isObject
=
srValue
>
THETA_NN
;
labPatch
.
shouldBeIntegrated
=
abs
(
srValue
-
THETA_NN
)
<
0.1
;
labPatch
.
shouldBeIntegrated
=
abs
(
srValue
-
THETA_NN
)
<
CLASSIFIER_MARGIN
;
patches
.
push_back
(
labPatch
);
//
...
...
@@ -539,7 +539,7 @@ namespace cv
////To fix: Check the paper, probably this cause wrong learning
//
labPatch
.
isObject
=
srValue
>
THETA_NN
;
labPatch
.
shouldBeIntegrated
=
abs
(
srValue
-
THETA_NN
)
<
0.1
;
labPatch
.
shouldBeIntegrated
=
abs
(
srValue
-
THETA_NN
)
<
CLASSIFIER_MARGIN
;
patches
.
push_back
(
labPatch
);
//
...
...
modules/tracking/src/tldDetector.hpp
View file @
a0896c7b
...
...
@@ -57,8 +57,9 @@ namespace cv
const
int
MEASURES_PER_CLASSIFIER
=
13
;
const
int
GRIDSIZE
=
15
;
const
int
DOWNSCALE_MODE
=
cv
::
INTER_LINEAR
;
const
double
THETA_NN
=
0.50
;
const
double
THETA_NN
=
0.5
;
const
double
CORE_THRESHOLD
=
0.5
;
const
double
CLASSIFIER_MARGIN
=
0.1
;
const
double
SCALE_STEP
=
1.2
;
const
double
ENSEMBLE_THRESHOLD
=
0.5
;
const
double
VARIANCE_THRESHOLD
=
0.5
;
...
...
modules/tracking/src/tldTracker.cpp
View file @
a0896c7b
...
...
@@ -262,9 +262,9 @@ int TrackerTLDImpl::Pexpert::additionalExamples(std::vector<Mat_<uchar> >& examp
TLDDetector
::
generateScanGrid
(
img_
.
rows
,
img_
.
cols
,
initSize_
,
scanGrid
);
getClosestN
(
scanGrid
,
Rect2d
(
resultBox_
.
x
/
scale
,
resultBox_
.
y
/
scale
,
resultBox_
.
width
/
scale
,
resultBox_
.
height
/
scale
),
10
,
closest
);
for
(
int
i
=
0
;
i
<
(
int
)
closest
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
closest
.
size
();
i
++
)
{
for
(
in
t
j
=
0
;
j
<
10
;
j
++
)
for
(
size_
t
j
=
0
;
j
<
10
;
j
++
)
{
Point2f
center
;
Size2f
size
;
...
...
modules/tracking/src/tldUtils.cpp
View file @
a0896c7b
...
...
@@ -151,16 +151,11 @@ void getClosestN(std::vector<Rect2d>& scanGrid, Rect2d bBox, int n, std::vector<
double
variance
(
const
Mat
&
img
)
{
double
p
=
0
,
p2
=
0
;
for
(
int
i
=
0
;
i
<
img
.
rows
;
i
++
)
{
for
(
int
j
=
0
;
j
<
img
.
cols
;
j
++
)
{
p
+=
img
.
at
<
uchar
>
(
i
,
j
);
p2
+=
img
.
at
<
uchar
>
(
i
,
j
)
*
img
.
at
<
uchar
>
(
i
,
j
);
}
}
p
=
sum
(
img
)(
0
);
p2
=
norm
(
img
,
NORM_L2SQR
);
p
/=
(
img
.
cols
*
img
.
rows
);
p2
/=
(
img
.
cols
*
img
.
rows
);
return
p2
-
p
*
p
;
}
...
...
modules/tracking/test/test_trackers.cpp
View file @
a0896c7b
...
...
@@ -461,7 +461,7 @@ TEST_P(DistanceAndOverlap, KCF)
TEST_P
(
DistanceAndOverlap
,
TLD
)
{
TrackerTest
test
(
TrackerTLD
::
create
(),
dataset
,
60
,
.4
f
,
NoTransform
);
TrackerTest
test
(
TrackerTLD
::
create
(),
dataset
,
40
,
.45
f
,
NoTransform
);
test
.
run
();
}
/***************************************************************************************/
...
...
@@ -492,7 +492,7 @@ TEST_P(DistanceAndOverlap, Shifted_Data_KCF)
TEST_P
(
DistanceAndOverlap
,
Shifted_Data_TLD
)
{
TrackerTest
test
(
TrackerTLD
::
create
(),
dataset
,
120
,
.2
f
,
CenterShiftLeft
);
TrackerTest
test
(
TrackerTLD
::
create
(),
dataset
,
30
,
.35
f
,
CenterShiftLeft
);
test
.
run
();
}
/***************************************************************************************/
...
...
@@ -523,7 +523,7 @@ TEST_P(DistanceAndOverlap, Scaled_Data_KCF)
TEST_P
(
DistanceAndOverlap
,
Scaled_Data_TLD
)
{
TrackerTest
test
(
TrackerTLD
::
create
(),
dataset
,
12
0
,
.45
f
,
Scale_1_1
);
TrackerTest
test
(
TrackerTLD
::
create
(),
dataset
,
3
0
,
.45
f
,
Scale_1_1
);
test
.
run
();
}
...
...
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