Face Detection bad accuracy

조회 수: 1 (최근 30일)
Mohammed Hagras
Mohammed Hagras 2015년 11월 27일
댓글: L H 2021년 12월 21일
I am trying to make a face detection app. I have followed the example of vision.CascadeObjectDetector as done in the example (<http://www.mathworks.com/help/vision/examples/face-detection-and-tracking-using-camshift.html)>. Unfortunatelly the accuracy is not good enough it detects some background or objrcts as faces. How can I improve it ?

채택된 답변

Dima Lisin
Dima Lisin 2015년 11월 30일
There are several options in the vision.CascadeObjectDetector that you can tweak. If you know how large you expect the faces to be in your images, you can set MinSize and MaxSize to eliminate the false detections that are too small or too big to be a face. You can also try increasing MergeThreshold, or set an ROI (region of interest) to exclude the parts of the image where you do not expect to see any faces at all.
Alternatively, you can also try using a different model: Frontal Face (LBP) instead of the default Frontal Face (CART). You can also try detecting the upper bodies, using the Upper Body model, and then detect the faces inside the resulting bounding boxes.
  댓글 수: 2
Mohammed Hagras
Mohammed Hagras 2015년 11월 30일
Thanks for your reply. I will try these silutions.
Aj_ti
Aj_ti 2016년 6월 23일
If I want to detect upper body first, I need to crop the bounding box for upper body then detect face in the cropped upper body image right?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Justin Pinkney
Justin Pinkney 2020년 1월 31일
You can try this deep learning based face detector: https://github.com/matlab-deep-learning/mtcnn-face-detection
It has much better performance than the built in vision.CascadeObjectDetector
  댓글 수: 1
L H
L H 2021년 12월 21일
How to use it?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by