Ask Your Question
0

setting include files with opencv 3.0

asked 2014-08-27 01:07:54 -0600

wangwanguo03 gravatar image

updated 2014-08-27 02:07:43 -0600

berak gravatar image

setting include files with opencv 3.0 I am download the files: opencv-master and opencv_contrib-master(include TLD tracking), rebuild it by cmake and vs2010. How to use TLD tracking and how to set include files ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-08-27 01:25:31 -0600

berak gravatar image

updated 2014-08-27 02:00:48 -0600

  • 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 );
edit flag offensive delete link more

Comments

Can you elaborate on "run the INSTALL project"? How exactly do you do that?

pistorinoj gravatar imagepistorinoj ( 2014-09-07 00:42:33 -0600 )edit

INSTALL , 2nd or 3rd project from top in opencv.sln . click 'Build' there

berak gravatar imageberak ( 2014-09-07 01:38:10 -0600 )edit

Sorry to be so dumb. IN my opencv.sln, the projects listed in order are: 3rdparty; applications; CMake Targets; extra; modules; tests accuracy; tests performance; ALL BUILD. Within CMake Targets, the projects are: INSTALL; PACKAGE; uninstall; ZERO_CHECK. If I just build the INSTALL package here, as far as I can tell, nothing happens.

pistorinoj gravatar imagepistorinoj ( 2014-09-07 13:09:37 -0600 )edit

Question Tools

Stats

Asked: 2014-08-27 01:07:54 -0600

Seen: 880 times

Last updated: Aug 27 '14