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
2328bc23
Commit
2328bc23
authored
Aug 11, 2014
by
Alex Leontiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vadim
parent
f05f8cfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
benchmark.cpp
modules/tracking/samples/benchmark.cpp
+4
-4
tld_tracker.cpp
modules/tracking/src/tld_tracker.cpp
+8
-8
No files found.
modules/tracking/samples/benchmark.cpp
View file @
2328bc23
...
...
@@ -7,9 +7,9 @@
#include <cstring>
#include <climits>
#define CMDLINEMAX 30
#define ASSESS_TILL 100
#define LINEMAX 40
const
int
CMDLINEMAX
=
30
;
const
int
ASSESS_TILL
=
100
;
const
int
LINEMAX
=
40
;
using
namespace
std
;
using
namespace
cv
;
...
...
@@ -368,7 +368,7 @@ int main( int argc, char** argv ){
for
(
int
i
=
0
;
i
<
vcount
;
i
++
){
results
.
push_back
(
assessment
(
videos
[
i
],
gts
[
i
],
algorithms
,((
char
**
)
initBoxes
)
+
i
,
acount
));
}
CV_Assert
(
results
[
0
].
results
[
0
].
size
()
<
CMDLINEMAX
);
CV_Assert
(
(
int
)
results
[
0
].
results
[
0
].
size
()
<
CMDLINEMAX
);
printf
(
"
\n\n
"
);
char
buf
[
CMDLINEMAX
*
CMDLINEMAX
*
LINEMAX
],
buf2
[
CMDLINEMAX
*
40
];
...
...
modules/tracking/src/tld_tracker.cpp
View file @
2328bc23
...
...
@@ -49,17 +49,17 @@
#include "opencv2/highgui.hpp"
#define THETA_NN 0.50
#define STANDARD_PATCH_SIZE 15
const
int
STANDARD_PATCH_SIZE
=
15
;
#define CORE_THRESHOLD 0.5
#define NEG_EXAMPLES_IN_INIT_MODEL 300
#define MAX_EXAMPLES_IN_MODEL 500
#define MEASURES_PER_CLASSIFIER 13
const
int
NEG_EXAMPLES_IN_INIT_MODEL
=
300
;
const
int
MAX_EXAMPLES_IN_MODEL
=
500
;
const
int
MEASURES_PER_CLASSIFIER
=
13
;
#define SCALE_STEP 1.2
#define ENSEMBLE_THRESHOLD 0.5
#define VARIANCE_THRESHOLD 0.5
#define NEXPERT_THRESHOLD 0.2
#define GRIDSIZE 15
#define DOWNSCALE_MODE INTER_LINEAR
const
int
GRIDSIZE
=
15
;
const
int
DOWNSCALE_MODE
=
cv
::
INTER_LINEAR
;
#define BLUR_AS_VADIM
#undef CLOSED_LOOP
static
const
cv
::
Size
GaussBlurKernelSize
(
3
,
3
);
...
...
@@ -477,7 +477,7 @@ timeStampPositiveNext(0), timeStampNegativeNext(0), params_(params), boundingBox
negativeExamples
.
reserve
(
NEG_EXAMPLES_IN_INIT_MODEL
);
std
::
vector
<
int
>
indices
;
indices
.
reserve
(
NEG_EXAMPLES_IN_INIT_MODEL
);
while
(
negativeExamples
.
size
()
<
NEG_EXAMPLES_IN_INIT_MODEL
)
while
(
(
int
)
negativeExamples
.
size
()
<
NEG_EXAMPLES_IN_INIT_MODEL
)
{
int
i
=
rng
.
uniform
((
int
)
0
,
(
int
)
scanGrid
.
size
());
if
(
std
::
find
(
indices
.
begin
(),
indices
.
end
(),
i
)
==
indices
.
end
()
&&
overlap
(
boundingBox
,
scanGrid
[
i
])
<
NEXPERT_THRESHOLD
)
...
...
@@ -919,7 +919,7 @@ void TrackerTLDModel::pushIntoModel(const Mat_<uchar>& example, bool positive)
proxyN
=
&
timeStampNegativeNext
;
proxyT
=
&
timeStampsNegative
;
}
if
(
proxyV
->
size
()
<
MAX_EXAMPLES_IN_MODEL
)
if
(
(
int
)
proxyV
->
size
()
<
MAX_EXAMPLES_IN_MODEL
)
{
proxyV
->
push_back
(
example
);
proxyT
->
push_back
(
*
proxyN
);
...
...
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