Ask Your Question
0

compiling problem with tutorial example.

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

Jaber gravatar image

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

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: http://docs.opencv.org/3.1.0/d2/d0a/t...

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

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

berak gravatar image

the tracking code is from https://github.com/Itseez/opencv_cont...

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

Stats

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

Seen: 611 times

Last updated: Jun 28 '16