Error trying to compile 3.1.0 sample "opencv tracker"

asked 2016-09-03 14:06:30 -0600

updated 2016-09-03 21:47:04 -0600

berak gravatar image

This is the tutorial sample http://docs.opencv.org/3.1.0/d2/d0a/t...

And this is what I get .

christian@christian-desktop ~/C++_Programas/02 $ g++ Tracker_01.cpp -o tracker_01 Tracker_01.cpp: In function ‘int main(int, char**)’: Tracker_01.cpp:26:7: error: ‘Tracker’ was not declared in this scope Ptr<tracker> tracker = Tracker::create( "KCF" ); ^ Thanks in advance .

edit retag flag offensive close merge delete

Comments

1

the tracking module is not part of the main opencv repo.

you need to rebuild opencv with contrib repo (see readme there!)

berak gravatar imageberak ( 2016-09-03 21:37:17 -0600 )edit

Tank you berak , I am on it .

christian_uy gravatar imagechristian_uy ( 2016-09-04 05:42:03 -0600 )edit