Ask Your Question

blublubber's profile - activity

2016-04-16 13:32:24 -0600 commented question Opencv sample train_hog.cpp not working

Yep did that just now. And it all looks fine. it shows me a popup with the image. And another with hog descriptors it gets from the images. but still the same error.

2016-04-16 13:20:05 -0600 commented question Opencv sample train_hog.cpp not working

Actually I have: %YAML:1.0 opencv_ml_svm:

2016-04-16 13:10:09 -0600 commented question Opencv sample train_hog.cpp not working

Yeah that's what I also thought. But I added this: cerr << "File" << (prefix+line).c_str() << endl; before imread ( (prefix+line).c_str() ) and the path is correct.

2016-04-16 12:53:57 -0600 commented question Opencv sample train_hog.cpp not working

Everything as is didn't change one thing

2016-04-16 11:57:22 -0600 asked a question Opencv sample train_hog.cpp not working

Hi, just started with opencv and I was trying out the train_hog sample but it's not working.

I used this example. Compiled while following this tutorial. For the training i'm using the INRIA dataset. This is the error I'm getting

./train --pd=/home/user/Documents/train/INRIA_dataset/ -p=pos.lst --nd=/home/user/Documents/train/INRIA_dataset/ -n=neg.lst
Start training......[done]
OpenCV Error: Parsing error (SVM model data is invalid, check sv_count, var_* and class_count tags) in write, file /home/user/OpenCV/opencv-3.1.0/modules/ml/src/svm.cpp, line 2038
terminate called after throwing an instance of 'cv::Exception'
what():  /home/user/OpenCV/opencv-3.1.0/modules/ml/src/svm.cpp:2038: error: (-212) SVM model data is invalid, check sv_count, var_* and class_count tags in function write

Aborted (core dumped)

I'm using ubuntu 15.10 64 bit