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
603fb880
Commit
603fb880
authored
Jun 09, 2015
by
Vladimir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Warnings #1
parent
303c1c50
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
18 deletions
+16
-18
tldDataset.hpp
modules/tracking/include/opencv2/tracking/tldDataset.hpp
+1
-1
tld_test.cpp
modules/tracking/samples/tld_test.cpp
+9
-9
tldDataset.cpp
modules/tracking/src/tldDataset.cpp
+1
-1
tldModel.cpp
modules/tracking/src/tldModel.cpp
+4
-4
tldTracker.cpp
modules/tracking/src/tldTracker.cpp
+1
-3
No files found.
modules/tracking/include/opencv2/tracking/tldDataset.hpp
View file @
603fb880
...
...
@@ -48,7 +48,7 @@ namespace cv
{
namespace
tld
{
CV_EXPORTS
cv
::
Rect2d
tld_InitDataset
(
int
datasetInd
,
char
*
rootPath
=
"TLD_dataset"
);
CV_EXPORTS
cv
::
Rect2d
tld_InitDataset
(
int
datasetInd
,
c
onst
c
har
*
rootPath
=
"TLD_dataset"
);
CV_EXPORTS
cv
::
Mat
tld_getNextDatasetFrame
();
}
}
...
...
modules/tracking/samples/tld_test.cpp
View file @
603fb880
...
...
@@ -93,7 +93,7 @@ static void onMouse(int event, int x, int y, int, void*)
}
}
int
main
(
int
argc
,
char
**
argv
)
int
main
()
{
//
// "MIL", "BOOSTING", "MEDIANFLOW", "TLD"
...
...
@@ -152,12 +152,12 @@ int main(int argc, char** argv)
int
frameCounter
=
0
;
//Time measurment
float
e3
=
getTickCount
();
int64
e3
=
getTickCount
();
for
(;;)
{
//Time measurment
float
e1
=
getTickCount
();
int64
e1
=
getTickCount
();
//Frame num
frameCounter
++
;
if
(
frameCounter
==
NUM_TEST_FRAMES
)
break
;
...
...
@@ -208,18 +208,18 @@ int main(int argc, char** argv)
//Time measurment
float
e2
=
getTickCount
();
float
t1
=
(
e2
-
e1
)
/
getTickFrequency
();
cout
<<
frameCounter
<<
"
\t
frame : "
<<
t1
*
1000
<<
"ms"
<<
endl
;
int64
e2
=
getTickCount
();
double
t1
=
(
e2
-
e1
)
/
getTickFrequency
();
cout
<<
frameCounter
<<
"
\t
frame : "
<<
t1
*
1000
.0
<<
"ms"
<<
endl
;
//waitKey(0);
}
}
//Time measurment
float
e4
=
getTickCount
();
float
t2
=
(
e4
-
e3
)
/
getTickFrequency
();
cout
<<
"Average Time for Frame: "
<<
t2
*
1000
/
frameCounter
<<
"ms"
<<
endl
;
int64
e4
=
getTickCount
();
double
t2
=
(
e4
-
e3
)
/
getTickFrequency
();
cout
<<
"Average Time for Frame: "
<<
t2
*
1000
.0
/
frameCounter
<<
"ms"
<<
endl
;
cout
<<
"Average FPS: "
<<
1.0
/
t2
*
frameCounter
<<
endl
;
...
...
modules/tracking/src/tldDataset.cpp
View file @
603fb880
...
...
@@ -49,7 +49,7 @@ namespace cv
int
frameNum
=
0
;
bool
flagPNG
=
false
;
cv
::
Rect2d
tld_InitDataset
(
int
datasetInd
,
char
*
rootPath
)
cv
::
Rect2d
tld_InitDataset
(
int
datasetInd
,
const
char
*
rootPath
)
{
char
*
folderName
=
""
;
int
x
,
y
,
w
,
h
;
...
...
modules/tracking/src/tldModel.cpp
View file @
603fb880
...
...
@@ -263,11 +263,11 @@ namespace cv
(
*
proxyN
)
++
;
}
void
TrackerTLDModel
::
printme
(
FILE
*
port
)
void
TrackerTLDModel
::
printme
(
FILE
*
port
)
{
//
dfprintf((port, "TrackerTLDModel:\n"));
//
dfprintf((port, "\tpositiveExamples.size() = %d\n", (int)positiveExamples.size()));
//
dfprintf((port, "\tnegativeExamples.size() = %d\n", (int)negativeExamples.size()));
dfprintf
((
port
,
"TrackerTLDModel:
\n
"
));
dfprintf
((
port
,
"
\t
positiveExamples.size() = %d
\n
"
,
(
int
)
positiveExamples
.
size
()));
dfprintf
((
port
,
"
\t
negativeExamples.size() = %d
\n
"
,
(
int
)
negativeExamples
.
size
()));
}
...
...
modules/tracking/src/tldTracker.cpp
View file @
603fb880
...
...
@@ -89,9 +89,7 @@ bool TrackerTLDImpl::initImpl(const Mat& image, const Rect2d& boundingBox)
myBoundingBox
.
width
*=
scale
;
myBoundingBox
.
height
*=
scale
;
}
model
=
Ptr
<
TrackerTLDModel
>
(
new
TrackerTLDModel
(
params
,
image_gray
,
myBoundingBox
,
data
->
getMinSize
()));
TrackerTLDModel
*
tldModel
=
((
TrackerTLDModel
*
)
static_cast
<
TrackerModel
*>
(
model
));
model
=
Ptr
<
TrackerTLDModel
>
(
new
TrackerTLDModel
(
params
,
image_gray
,
myBoundingBox
,
data
->
getMinSize
()));
data
->
confident
=
false
;
data
->
failedLastTime
=
false
;
...
...
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