I want to use opencv and haartraining in order to train a new haarcascade with new samples. I have created positives.dat and negative.dat which contains list with positive and negative images. Next step to train haarcascade using opencv_haartraining.exe. However I am confused with documentation here. Any idea how can I use haartraining.exe? I have create a list of positives and negative files. Both file list contain folders with 19x19 positive images containing only the object and 19x19 negative images. I want to create the right files with opencv_createsamples in order to train a classifier using opencv_traincascade.exe or opencv_haartraining.exe. I am trying to follow the instructions from here:
opencv_createsamples -info positives.dat -w 19 -h 19 -vec pos-samples.vec
I am trying to use them without giving any information. The object contains the whole image. I am getting:
Info file name: pos-samples.dat
Img file name: (NULL)
Vec file name: samples.vec
BG file name: (NULL)
Num: 1000
BG color: 0
BG threshold: 80
Invert: FALSE
Max intensity deviation: 40
Max x angle: 1.1
Max y angle: 1.1
Max z angle: 0.5
Show samples: FALSE
Width: 19
Height: 19
Create training samples from images collection...
pos-samples.dat(1) : parse errorDone. Created 0 samples