How to choose the best bounding box out of a set of bounding boxes returned by cascade classifiers for face detection? [closed]

asked 2014-03-18 11:48:31 -0600

aishpant gravatar image

updated 2014-03-18 12:13:18 -0600

I trained a classifier for face detection using opencv_traincascade based on LBP features. When I run cascade.xml on a face, I get many bounding boxes (it is not the best classifier in the world). For generalisability, I make no assumptions on the data and assume the bounding box of maximum size will give me the face region. Sadly, this is not always the case.

Is there any way to solve this problem or do I need a better classifier?

EDIT

  1. I am training using OpenCV on windows and testing the cascade.xml on Matlab. Are the results affected by doing this? Any compatibility issues?
  2. How do people usually test their cascades-on C#, Matlab, C, C++, Python or using OpenCV itself?
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-09-28 14:02:47.872691

Comments

maybe have a look at grouprectangles()

berak gravatar imageberak ( 2014-03-18 11:57:21 -0600 )edit

@berak Any way of doing this in Matlab? :) Or will there be compatibility issues in using vision.CascadeObjectDetector of Matlab for LBP features?

aishpant gravatar imageaishpant ( 2014-03-18 13:26:17 -0600 )edit

sorry, no idea (total idiot here, when it comes to matlab..)

berak gravatar imageberak ( 2014-03-18 13:30:00 -0600 )edit

@aishpant, you can use mex opencv. Iv'e successfully used group rectangles in my project with mex opencv, I can help you with that.

mex opencv: http://www.cs.stonybrook.edu/~kyamagu/mexopencv/

GilLevi gravatar imageGilLevi ( 2014-03-19 08:02:22 -0600 )edit