Sample program "train_HOG" assertion (sv_count != 0) with OpenCV 3.2 [closed]
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.
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.