i need to crop an image after face detection

1 visualizzazione (ultimi 30 giorni)
krishnaveni
krishnaveni il 25 Gen 2014
Commentato: priti kale il 15 Ott 2018
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 Commenti
prashanth
prashanth il 20 Feb 2014
for i = 1:size(BB,1)
J= imcrop(IFaces,BB(i,:));
figure(3),subplot(2,2,i);imshow(J);
end
priti kale
priti kale il 15 Ott 2018
That is fine but I wish to crop more face than this codes so where i do changes in code.

Accedi per commentare.

Risposte (1)

Explorer
Explorer il 25 Gen 2014

Categorie

Scopri di più su Computer Vision Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by