Hi,
i'm pretty new to openCV and I need it for an university project. As I couldn't found any proper classifier that is capable of detecting side-way faces, I wanted to create my own classifier. What I've already done:
- Loaded positive images from a database containg faces and negative images not containing faces
- Put all images from positives to positves.txt like
find ./positive_images -iname "*.jpg" -or -iname "*.gif" > positives.txt
(same way for negatives) - Fired
perl bin/createsamples.pl positives.txt negatives.txt samples 1500\ "opencv_createsamples -bgcolor 0 -bgthresh 0 -maxxangle 1.1\ -maxyangle 1.1 maxzangle 0.5 -maxidev 40 -w 80 -h 40"
And thats the problem. No samples are generated. I've read several tutorials but it seems like I don't get it.
Do I need to get a info file? Do I need to draw rectangles around the objects in my positive images? I have like 1500 positive and 800 negative images.
The thing is that the script runs without any error but not even a single sample file is created. What do I miss? I couldn't find any answer out there.. hope anyone of you can help me!
Thanks in advance.
Info: I'm on Linux Mint 18. The output is similar to:
/positive_samples/93-13.jpg -bg tmp -vec -num/positive_samples/93-13.jpg.vec -num 0
Info file name: (NULL)
Img file name: ./positive_samples/93-13.jpg
Vec file name: -num/positive_samples/93-13.jpg.vec
BG file name: tmp
Num: 0
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
Max Scale: -1
Create training samples from single image applying distortions...
Done
The field 'Num: 0' is a needle in my eye, as Info file name: (NULL). Could this occur the problem that no samples are generated? What about the script 'createtrainsamples.pl' you can find at github? I mean I want to generate samples for the training. Am I actually using the right script?
I'm desperate..