Sample program "train_HOG" assertion (sv_count != 0) with OpenCV 3.2 [closed]

asked 2017-01-25 17:01:19 -0600

caruofc gravatar image

Hi,

I tried to train SVM with sample downloaded from "INRIA". I used the pos and neg data from "train_64x128_H96" directory. But my program is giving me (sv_count != 0) assertion as soon as it tries to execute svm->train(). I am using OpenCV 3.2. Can anybody help me on this?

Thanks.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-26 15:21:21.971526

Comments

this can only happen, if your train data was empty. can you check trainData.rows before train() ?

i guess, there is a problem loading images.

berak gravatar imageberak ( 2017-01-26 01:32:00 -0600 )edit