Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

do this process in two steps first create positive sample from single image you want to than create vector file of that

you need to make batch file write

createsamples.exe -img 33.jpg -bg neg/bg.txt -info info/info.lst -pngoutput info -maxxangle 0.5 -maxyangle 0.5 -maxzangle 0.5 -num 1000

this will create 1000 positive samples, be sure first make folder of name info

than create vector file

createsamples.exe -info info/info.lst -num 1000 -w 20 -h 20 -vec positives.vec

bg.txt is negetive file list in directory neg info refer to positive folder

another tip while HAAR training numpos should be 900 means if you have 1000 than minus 100 than only training work well