Hello,
I'm trying to use createsamples utility (OpenCV 2.4.6.1 on Cygwin 1.7.23). My main folder is called Photos, on it I have one folder neg with one picture img1.bmp (480 by 640 pixels), two file img.bmp (face image 92 by 112 pixels) and nega.txt: neg/img1.bmp
Command line:
$ opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1 -maxyangle 0 -maxzangle 0.5 -maxidev 40 -vec samples.vec -img img.bmp -bg nega.txt -w 20 -h 20 -num 1
Info file name: (NULL)
Img file name: img.bmp
Vec file name: samples.vec
BG file name: nega.txt
Num: 1
BG color: 0
BG threshold: 0
Invert: FALSE
Max intensity deviation: 40
Max x angle: 1.1
Max y angle: 0
Max z angle: 0.5
Show samples: FALSE
Width: 20
Height: 20
Create training samples from single image applying distortions...
I don't receive a Done message and no vec file is created.
However, if I try to create a vec file from a positive descriptive, it works well. The vec file is created anf if I check with -show option, I can see all my picture.
find positive/ -name '*.bmp' -exec echo {} 1 0 0 20 20 \; > samplesdescription.dat
opencv_createsamples -info samplesdescription.dat -vec test.vec -w 92 -h 112
Thanks for further help. Charlotte