Ask Your Question

compiling problem with tutorial example.

asked 2016-06-28 20:47:40 -0500

Jaber gravatar image

updated 2016-06-28 21:06:41 -0500

I installed OpenCV 3.1.0 on windows 10, and then made a simple project with Visual studio 2015 to run the example of the Tracker, given in openCV website:

The compiler complained, because obviously the second line of the code: #include "opencv2/tracking.hpp" is wrong ! In fact, the file tracking.hpp is located at: "opencv2/video/tracking.hpp"

So I surely misunderstood something...Can someone please tell me what I am missing to make the example compile ? Thank you, Jaber

edit retag flag offensive close merge delete


opencv/video/tracking.hpp contains camshift, optical flow and friends. (and yes, this is in opencv main trunk)

the docs example you're refering to is about kcf/tld/mil tracking, and is from opencv_contrib.

berak gravatar imageberak ( 2016-06-28 21:17:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-06-28 20:56:04 -0500

berak gravatar image

the tracking code is from

so you need to download that, and rebuild from src.

see readme there for further build instructions

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-06-28 20:47:40 -0500

Seen: 553 times

Last updated: Jun 28 '16