Commit a226e835 authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #865 from berak:patch-1

parents 9abfefab e2c4574f
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)
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment