My classifier detect the background of the object [closed]
I trained my own classifier using haar cascade to detect an object but the classifier, also, detect the object's background. Is there any solution for that?
Some images of my tools are https://www.dropbox.com/s/6ncqhnjkekgig5h/grabber_446.bmp https://www.dropbox.com/s/ihh953fheuk05w9/grabber_42.bmp
Can you upload some example images?
@GilLevi I uploaded twoimages
Hard to tell. Once you have the bounding box, perhaps you can try segmentation using the HSV color space (using Hue).
When I used HSV color space for threshing the result did not good cause the real background has many color, sometimes near to tool's color.
The most obvious explanation is that you probably didn't train a good enough classifier. Try adding more positive and negative examples, and also try to train it with the lowest FA rate and highest hit rate possible.
Is there a ratio for negative and positive images? Because I read that positive images is good to be less than negatives. Also, I don't have enough images so I create some samples from one image. Is that a problem?
For real world, non-laboratory environments you really must have a considerable amount of positive samples. For you to have a n idea, I trained a aerial car detector with 1800 unique positive samples and 2800 negative samples.