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
a226e835
Commit
a226e835
authored
Nov 25, 2016
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #865 from berak:patch-1
parents
9abfefab
e2c4574f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
5 deletions
+31
-5
CMakeLists.txt
modules/tracking/CMakeLists.txt
+1
-1
multiTracker_dataset.cpp
modules/tracking/samples/multiTracker_dataset.cpp
+12
-2
tracker_dataset.cpp
modules/tracking/samples/tracker_dataset.cpp
+18
-2
No files found.
modules/tracking/CMakeLists.txt
View file @
a226e835
set
(
the_description
"Tracking API"
)
ocv_define_module
(
tracking opencv_imgproc opencv_core opencv_video opencv_highgui opencv_datasets WRAP python
)
ocv_define_module
(
tracking opencv_imgproc opencv_core opencv_video opencv_highgui
OPTIONAL
opencv_datasets WRAP python
)
modules/tracking/samples/multiTracker_dataset.cpp
View file @
a226e835
...
...
@@ -39,6 +39,10 @@
//
//M*/
#include "opencv2/opencv_modules.hpp"
#include "opencv2/core.hpp"
#ifdef HAVE_OPENCV_DATASETS
#include "opencv2/datasets/track_vot.hpp"
#include <opencv2/core/utility.hpp>
#include <opencv2/tracking.hpp>
...
...
@@ -227,4 +231,11 @@ int main(int argc, char *argv[])
waitKey
(
0
);
return
0
;
}
\ No newline at end of file
}
#else // ! HAVE_OPENCV_DATASETS
int
main
()
{
CV_Error
(
cv
::
Error
::
StsNotImplemented
,
"this sample needs to be built with opencv_datasets !"
);
return
-
1
;
}
#endif // HAVE_OPENCV_DATASETS
modules/tracking/samples/tracker_dataset.cpp
View file @
a226e835
...
...
@@ -39,6 +39,14 @@
//
//M*/
//
// !!! this sample requires the opencv_datasets module !!!
//
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_DATASETS
#include "opencv2/datasets/track_vot.hpp"
#include <opencv2/core/utility.hpp>
#include <opencv2/tracking.hpp>
...
...
@@ -221,4 +229,13 @@ int main(int argc, char *argv[])
waitKey
(
0
);
return
0
;
}
\ No newline at end of file
}
#else // ! HAVE_OPENCV_DATASETS
int
main
()
{
CV_Error
(
cv
::
Error
::
StsNotImplemented
,
"this sample needs to be built with opencv_datasets !"
);
return
-
1
;
}
#endif // HAVE_OPENCV_DATASETS
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