Need help at train

asked 2017-08-27 15:17:03 -0500

Hello!

I'm trying to create a simple application with openCV to recognize something, and I'm having some problems on TRAIN stage, looking like i have no positive images on my vector. I will show everything i did.

First, i created the files and the .lst:

opencv_createsamples -img bdsaida/img1.jpg -bg bg.txt -info info/annotations.lst -maxxangle 0.1 -maxyangle 0.1 -maxzangle 0.1 -num 1000

image description image description

Everything ok so far. Then I created the .vec file:

opencv_createsamples -info info/annotations.lst -num 1000 -w 20 -h 20 -vec positives.vec

image description

So far, so good. Then, i tried to train with this command:

opencv_traincascade -data data -vec positives.vec -bg bg.txt -numPos 900 -numNeg 450 -numStages 10 -minHitRate 0.8 -w 20 -h 20

image description

So, I think all the images from the .vec should appear, but only one is appearing, and then, my output files is not working.

If someone could help me telling what I'm doing wrong, i would apreciate.

Thanks for the attention!

edit retag flag offensive close merge delete