Ask Your Question
0

Createsamples creating no samples

asked 2014-03-19 10:27:24 -0600

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-04-04 10:20:17 -0600

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.

edit flag offensive delete link more
0

answered 2015-10-06 17:54:09 -0600

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

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-19 10:27:24 -0600

Seen: 1,494 times

Last updated: Apr 04 '14