error while trying to run a tracker code

asked 2016-04-09 10:06:47 -0600

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

edit retag flag offensive close merge delete

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 ( 2016-04-09 10:21:14 -0600 )edit

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

Daschkin gravatar imageDaschkin ( 2016-04-18 10:41:23 -0600 )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 ( 2016-11-24 01:58:44 -0600 )edit