Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

opencv_createsamples correct parameters

Hello, I am training a classifier for flower from the 102 flower category dataset. I followed the CodingRobin tut for eeverything,
http://coding-robin.de/2013/07/22/train-your-own-opencv-haar-classifier.html

My first attempt at the training failed at the 0 stage disappointingly. Anyway, this time I want to tune the training parameters beforehand properly.
So, the training guide says to have -bgcolor 0 -bgthresh 0 . Can anyone take a look at few of my training samples and tell me what value should I choose or How do I find what value to choose? Is -bgcolor the value of the grayscale or actual color?
Also, I have 250 positives and 8188 negatives. I plan to use opencv_createsamples to produce 10,000 images(40 for each positive I guess). Should I go for 10,000 positives(or more or less)? image description

image description

image description

image description

image description