First time here? Check out the FAQ!

Ask Your Question
0

Create samples won't work

asked Jul 2 '15

Stefan Isidorovic gravatar image

Hi,

I am trying to create *.vec file for training classifier.
Problem is that opencv_createsamples tool doesn't show any warning or error, but later when I start opencv_traincascade tool it shows error that there is not enough samples provided.

When I call opencv_createsamples with -show flag it shows only first image. Same happen when I am call it after for created *.vec file.

opencv_createsamples -info pos.info -vec sample.vec -num 500 -w 48 -h 24

Info file name: pos.info
Img file name: (NULL)
Vec file name: sample.vec
BG  file name: (NULL)
Num: 500
BG color: 0
BG threshold: 80
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: 48
Height: 24
Create training samples from images collection...
Done. Created 500 samples

And pos.file is like this

pos/pos-0.pgm 1 0 0 100 40
pos/pos-100.pgm 1 0 0 100 40
pos/pos-101.pgm 1 0 0 100 40
pos/pos-102.pgm 1 0 0 100 40

Can someone help me?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jul 13 '15

I have some problem with you mister, any solution?

Preview: (hide)

Comments

I changed back from 3.0 version to 2.4 and it worked :)

Stefan Isidorovic gravatar imageStefan Isidorovic (Aug 25 '15)edit

Question Tools

1 follower

Stats

Asked: Jul 2 '15

Seen: 1,073 times

Last updated: Jul 13 '15