i need to crop an image after face detection

조회 수: 1 (최근 30일)
krishnaveni
krishnaveni 2014년 1월 25일
댓글: priti kale 2018년 10월 15일
i need to crop the face after face detection using viola jones method clc; vid = videoinput('winvideo',1); preview(vid); start(vid); set(vid, 'ReturnedColorSpace', 'RGB'); for frame =1:2 % your function goes here thisFrame = getsnapshot(vid); if frame == 1 a = thisFrame; else b = thisFrame; end pause(1); end faceDetector = vision.CascadeObjectDetector(); bbox = step(faceDetector, a); IFaces = insertObjectAnnotation(a, 'rectangle', bbox, 'face'); imshow(IFaces); after this i have to crop the face
  댓글 수: 2
prashanth
prashanth 2014년 2월 20일
for i = 1:size(BB,1)
J= imcrop(IFaces,BB(i,:));
figure(3),subplot(2,2,i);imshow(J);
end
priti kale
priti kale 2018년 10월 15일
That is fine but I wish to crop more face than this codes so where i do changes in code.

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

답변 (1개)

Explorer
Explorer 2014년 1월 25일

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by