Ask Your Question
0

The Reliability of Haar detect object.

asked 2013-10-21 23:49:36 -0600

JHW gravatar image

updated 2013-10-22 00:15:05 -0600

Hi,

I'm making a program using cvHaarDetectObjects() function.

My question is, can I get the reliability or accuracy of detected objects? (like template matching)

if so, how can I get it?

or can I get a number that indicates the "overlapped detections"?

For example, if I get a 3 objects detected, I want to classify them with the accuracy(or reliability) to find the best from detected object. Also, I want to see the ratio of accuracy(or reliability).

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-10-22 10:20:48 -0600

As far as I know, the Cascade Detector method does not return any degree of confidence for positive detections. However, some objects will be detected multiple times on the same image, because of the multiscale feature of the detector.

I think it is safe to assume that the object that is detected the most times will be the most reliable detection.

edit flag offensive delete link more

Comments

Thanks!! I know that cvHaarDetectObjects() gives the object that is most overlapped however, the thing I want to know is "how many times the detected object overlapped" ?! is there any way to get this information?

JHW gravatar imageJHW ( 2013-10-22 18:49:04 -0600 )edit

I'm not sure if I know what you mean when you talk about overlapped objects, but if it is how many rectangles correspond to the same object, it is possible to get that information.

The method stores the rectangles in a CvMemStorage* storage. You have to check for rectangles that are close to each other and assume that they belong to the same object. Set the minNeighbors parameter to 1, so that the algorithm doesn't group any rectangles together.

Pedro Batista gravatar imagePedro Batista ( 2013-10-23 04:06:12 -0600 )edit

Thanks ! that's the answer I want to know ! Additionally, "overlapped objects" that I mentioned above means exactly what you have answered, the minNeighbors. Thank you again !

JHW gravatar imageJHW ( 2013-10-23 04:49:10 -0600 )edit

Question Tools

Stats

Asked: 2013-10-21 23:49:36 -0600

Seen: 349 times

Last updated: Oct 22 '13