Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Removing jitter/shaking effect in Haar Cascade detection bounding box

I have a trained classifier for Haar, with good detection most of the times. It has few false positives but for most of the frames it detects the actual object well. The problem is that the bounding box over the actual object keeps shaking a bit (even if my object is stationary) and the size of rectangle also keeps fluctuating.

I need the bounding box to be stable and in terms size and position for some distance calculations. I tried using motion detection and fixing the position if object is stationary, but it stabilizes the false positives as well.

Are there any implementations already available to achieve this?

I am also considering 2d feature matching to stabilize the rectangle (finding the previous detection around the new detection). Would it be a good idea.

Please suggest the possible approaches. Any already existing implementation would be great.

Thanks.