Ask Your Question
0

tracker errors in opencv3

asked 2016-08-04 04:30:10 -0500

alireza.kenarang gravatar image

I want to use TLD tracker. So, I installed OpenCV contrib (master), same as here.

I installed OpenCV 3.x on VS2015. Installation process finished completely and, for tracking, it created just tracking.hpp and tracking_c.hpp in ...\include\opencv2\video location.

Also, in lib folder, I just have opencv_ts310d.lib and opencv_world310d.lib.

Now I want to run this tracker algorithm but this line make error:

Ptr < Tracker > tracker = Tracker::create(tracker_algorithm);

In other words, the compiler can't find tracker.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-04 04:39:10 -0500

berak gravatar image

to use the Trackers, you need to rebuild from src with opencv_contrib repo (please see readme there for build instructions)

then, have a look at the samples in the tracking module

edit flag offensive delete link more

Comments

thanks for your reply, there is 3 question i want ask you:

1- i dont know how i can rebuild from src. could you please show me how i can do it?

2- in opencv_contrib repo i passed all of steps instead of step 8. is it mentioning add lib and include folders to visual stadio?

3- there is a point that is suspicious. after building the install item in opencv.sln , i have just tracking.hpp in ...build\install\include\opencv2\video location (it exist in video folder and i don't have any tracking folder individually). also i don't have tracker module. is it normal?

alireza.kenarang gravatar imagealireza.kenarang ( 2016-08-04 09:11:21 -0500 )edit
    • sorry, but i won't repeat all tutorials or topics on this site related to that.
    • it means, that you have to add opencv_tracking310.lib to your linker settings (similar to all other opencv_xxx310.lib things
    • after building the INSTALL project, you should have a install\include\opencv2 folder with tracking.hpp and a tracking folder (again, the tracking.hpp in the video folder is unrelated !) (i'm guessing, that you're looking at an old include folder form the original binary distribution, not the one you just build)
berak gravatar imageberak ( 2016-08-04 09:19:44 -0500 )edit

thanks for your helps, i reinstall it and the problem solve, my tracking module didn't install completely.

alireza.kenarang gravatar imagealireza.kenarang ( 2016-08-06 13:21:57 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-08-04 04:30:10 -0500

Seen: 566 times

Last updated: Aug 04 '16