How to separate detected face region from face image?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi!
I use Viola's face detector - http://www.mathworks.com/matlabcentral/fileexchange/29437-viola-jones-object-detection
to detect face region. it is nicely giving detected face region. but i need to separate that detected region. is there any way to separate that square which include face region.
Thanks.
댓글 수: 0
답변 (1개)
Sumit Tandon
2012년 8월 3일
I am assuming that you are using the STEP method of VISION.CASCADEOBJECTDETECTOR that returns a bounding box.
You could just use the bounding box data to crop out the face from the image.
For example, if I is the RGB image and bounding box is [x,y,w,h], you could do:
croppedFace = I(x:x+w, y-h:y,:);
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!