Error trying to compile 3.1.0 sample "opencv tracker"

asked Sep 3 '16

updated Sep 4 '16

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 .

Preview: (hide)

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 (Sep 4 '16)edit

Tank you berak , I am on it .

christian_uy gravatar imagechristian_uy (Sep 4 '16)edit