Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Createsamples creating no samples

I'm using this tutorial, and I'm on the stage of creating lots of samples from my positive images. I'm using Windows.

This is the command (using absolute paths!):

C:\opencv_built\bin\Release\opencv_createsamples.exe -bgcolor 0 -bgthresh 0 -maxxangle 1.1\   -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40 -img C:\work_asaaki\code\opencv-haar-classifier-training-master\positive_images\60inclination_315azimuth.jpg -bg tmp -vec samples\60inclination_315azimuth.jpg.vec -num 62

And this is the kind of output I get:

Info file name: (NULL)
Img file name: 60inclination_315azimuth.jpg
Vec file name: samples0inclination_315azimuth.jpg.vec
BG  file name: tmp
Num: 62
BG color: 0
BG threshold: 0
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: 80
Height: 40
Create training samples from single image applying distortions...
Done

But when I check the samples folder, there are none! What am I doing wrong?