First time here? Check out the FAQ!

Ask Your Question
0

Createsamples creating no samples

asked Mar 19 '14

asaakius gravatar image

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?

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Apr 4 '14

The samples created by opencv_createsamples are collectively stored in the vec file. There's some way to view them, but I haven't done that recently, so I don't remember how.

Preview: (hide)
0

answered Oct 6 '15

make sure that the image path are correct , if it didn't find the image no error will appear and the vec file will not be created

Preview: (hide)

Question Tools

Stats

Asked: Mar 19 '14

Seen: 1,505 times

Last updated: Apr 04 '14