Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  • after compiling with cmake, run the INSTALL project. this will copy the headers, libs and dlls from both opencv and opencv_contrib to your install folder.

  • opencv_contrib\modules\tracking\samples\tracker.cpp shows a bit of the usage.


// "MIL" -> TrackerMIL
// "BOOSTING" -> TrackerBoosting
// "MEDIANFLOW" -> TrackerMedianFlow;
// "TLD" -> TrackerTLD;
Ptr<Tracker> tracker = Tracker::create( tracker_algorithm );
  • after compiling with cmake, run the INSTALL project. this will copy the headers, libs and dlls from both opencv and opencv_contrib to your install folder.

    add the include folder from that to your "additional Include folders" in VS, then you can use:


 #include <opencv2/tracking.hpp>

just like any other opencv header


  • opencv_contrib\modules\tracking\samples\tracker.cpp shows a bit of the usage.


// "MIL" -> TrackerMIL
// "BOOSTING" -> TrackerBoosting
// "MEDIANFLOW" -> TrackerMedianFlow;
// "TLD" -> TrackerTLD;
Ptr<Tracker> tracker = Tracker::create( tracker_algorithm );