Ask Your Question
0

Create samples won't work

asked 2015-07-02 09:40:24 -0500

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-13 00:16:01 -0500

I have some problem with you mister, any solution?

edit flag offensive delete link more

Comments

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

Stefan Isidorovic gravatar imageStefan Isidorovic ( 2015-08-25 14:19:48 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-07-02 09:40:24 -0500

Seen: 771 times

Last updated: Jul 13 '15