error while trying to run a tracker code

asked Apr 9 '16

Abeer gravatar image

I've recently downloaded opencv3.1.0 on windows 7 desktop with microsoft visual studio 2015.

But when I try to run the code it gives me these errors for the following line of code // create a tracker object Ptr<tracker> tracker = Tracker::create("KCF"); errors: 1- identifier "Tracker" is undefined AbeerTracker
2- name followed by '::' must be a class or namespace name

Can anyone help me with this please Thanks

Preview: (hide)

Comments

"I've recently downloaded opencv3.1.0 on windows 7" -- the prebuild package (if you're using that) does not contain the tracker code. you will have to rebuild from src with the opencv_contrib repo

berak gravatar imageberak (Apr 9 '16)edit

I have the same problem. After rebuilding the opencv_contrib libraries I have still the same problem.

Daschkin gravatar imageDaschkin (Apr 18 '16)edit

After u download the opencv_contrib, it works ok . But initialization of trackers always shows error !!!!

That part hv to be figured out !!1

ManuVISION gravatar imageManuVISION (Nov 24 '16)edit