Hi,
I am trying to create *.vec file for training classifier.
Problem is that opencv_createsamples tool doesn't show any warning or error, but later when I start opencv_traincascade tool it shows error that there is not enough samples provided.
When I call opencv_createsamples with -show flag it shows only first image. Same happen when I am call it after for created *.vec file.
opencv_createsamples -info pos.info -vec sample.vec -num 500 -w 48 -h 24
Info file name: pos.info
Img file name: (NULL)
Vec file name: sample.vec
BG file name: (NULL)
Num: 500
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: 48
Height: 24
Create training samples from images collection...
Done. Created 500 samples
And pos.file is like this
pos/pos-0.pgm 1 0 0 100 40
pos/pos-100.pgm 1 0 0 100 40
pos/pos-101.pgm 1 0 0 100 40
pos/pos-102.pgm 1 0 0 100 40
Can someone help me?