What can I detect with the haar classifier?

1.1k views Asked by At

Lets say I want to train the cascade to recognize one object, but this object has different shapes. For example if I want to recognize a cup. You know there are cups in many shapes but also they have their similarities. Or another example: a steering wheel. You can always tell that the object is a steering wheel but it has different shapes. My question: Can I train the cascade to recognize most of the different shapes of one object?

1

There are 1 answers

5
baci On

if you train one cascade you will eventually get many false positives due to high variance of positive samples.

however if you have, say 20 stable classifiers, focused on different shapes, you can OR and use them.

suggestions on steering wheel case

  • do not use steered wheels as positives, only use 0 - degree wheels, this will make the classifier converge onto something.

  • group wheels by similarity in shape (color is not important for boosted cascade and background is not important because cars have similar gauge displays) and train cascades on these groups

  • search for a wheel in all rotations - note the symmetries - since boosted cascade is rotation invariant - and a steering wheel is likely to be steered.