How to detect faces without using vision.Cas​cadeObject​Detector

조회 수: 9 (최근 30일)
Mahmoud Abdelaziz
Mahmoud Abdelaziz 2022년 3월 27일
댓글: yanqi liu 2022년 3월 29일
I am new in matlab I am trying to detect faces without using built in functions but I not able to do this any help.

답변 (1개)

yanqi liu
yanqi liu 2022년 3월 28일
yes,sir,may be use ycbcr color segment to identify face as simple method
if possible,can you upload your image to analysis?
  댓글 수: 4
Mahmoud Abdelaziz
Mahmoud Abdelaziz 2022년 3월 28일
Thank you for helping but this only work for this image, if I change the image it does not work properly.
yanqi liu
yanqi liu 2022년 3월 29일
yes,sir,if use different image,may be check
such as
im = imresize(I, 0.3, 'bilinear');
detector = mtcnn.Detector("MinSize", 15, "MaxSize", 308, "PyramidScale", 5);
[bboxes, scores, landmarks] = detector.detect(im);
displayIm = insertObjectAnnotation(im, "rectangle", bboxes, scores, "LineWidth", 2);
imshow(displayIm)
hold on
for iFace = 1:numel(scores)
scatter(landmarks(iFace, :, 1), landmarks(iFace, :, 2), 'filled');
end

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

Community Treasure Hunt

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

Start Hunting!

Translated by