When I install the additional libraries for CV in the opencv_contrib, all other libraries get compiled but not tracking. Any ideas why ?? No .lib files are created only for tracking.

asked 2016-11-21 20:51:52 -0600

ManuVISION gravatar image

I tried to install the additional libraries for tracking from opencv_contrib folder using the method mentioned in https://www.youtube.com/watch?v=vp0Ab....

But only tracking modules are not working the rest are working. If i go to the .lib folder then no .lib is created for only tracking but to all others it is created.

So any suggestions will be highly appreciated.

edit retag flag offensive close merge delete

Comments

1

Do you by chance have it unchecked in cmake? All the BUILD_opencv_* boxes, you might have accidentally clicked it.

Tetragramm gravatar imageTetragramm ( 2016-11-21 22:14:34 -0600 )edit
2

tracking depends on datasets, and datasets depends on face, so please enable those, too.

berak gravatar imageberak ( 2016-11-22 00:58:47 -0600 )edit

Thanks for the reply !!! I have enabled them. But when I click on configure in cmake the following two lines are displayed: " 1. Module opencv_datasets disabled because opencv_text dependency can't be resolved! 2. Module opencv_tracking disabled because opencv_datasets dependency can't be resolved! "

Plz tell me how to resolve this. I need tracking very badly !!!

ManuVISION gravatar imageManuVISION ( 2016-11-22 09:44:55 -0600 )edit
1

... yea, and who knows, what the text thing depends on...

if you want my 2ct:

change the CmakeLists.txt in the tracking module, and make the datasets dependancy OPTIONAL

berak gravatar imageberak ( 2016-11-22 09:55:13 -0600 )edit

Thanks berak !!! Now MultiTracker class works but ran into one more error !!!

I followed the example mentioned in link of Opencv 3.1 http://docs.opencv.org/3.1.0/d5/d07/t...

but the "trackers.add(img,found)" is not working. Then how to initialize the trackers for the first frame ??? found is the vector<rect> for people found using HOG SVM.

plz help

ManuVISION gravatar imageManuVISION ( 2016-11-24 01:52:18 -0600 )edit

Thanks a lot!!! It worked

ManuVISION gravatar imageManuVISION ( 2016-11-24 01:52:50 -0600 )edit

@ManuVISION, nice to hear that, but can you please start a new question for your new problem ;)

(else it gets pretty messy here)

berak gravatar imageberak ( 2016-11-24 04:31:24 -0600 )edit

@berak: are datasets and face modules dependencies really needed for the tracking module? I recently found myself with this same problem, and disabling the dependencies on the cmake config allowed me to correctly compile the tracking module without any issue...

LorenaGdL gravatar imageLorenaGdL ( 2016-11-24 10:33:51 -0600 )edit
1

@LorenaGdL,

and disabling the dependencies on the cmake config allowed me to correctly compile the tracking module

yes, that's what i'd say, too. (it's only thosetwo samples, that rely on the datasets dependancy.

let's see, if making that dependancy optional works

(would spare some folks exactly that trouble in the future..)

berak gravatar imageberak ( 2016-11-24 11:03:42 -0600 )edit