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 );
2 | No.2 Revision |
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
// "MIL" -> TrackerMIL
// "BOOSTING" -> TrackerBoosting
// "MEDIANFLOW" -> TrackerMedianFlow;
// "TLD" -> TrackerTLD;
Ptr<Tracker> tracker = Tracker::create( tracker_algorithm );