Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've recently trained a Haar classifier by using 40 images, by following this here which is also inspired by Nataoshi.

The script I used to generate samples is:

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"

which results in having 1500 samples with the ratio on 80/40.

I've recently trained a Haar classifier by using 40 images, by following this here which is also inspired by Nataoshi.

The script I used to generate samples is:

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"

which results in having 1500 samples with the ratio on of 80/40.