i need to crop an image after face detection

1 visualización (últimos 30 días)
krishnaveni
krishnaveni el 25 de En. de 2014
Comentada: priti kale el 15 de Oct. de 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 comentarios
prashanth
prashanth el 20 de Feb. de 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 el 15 de Oct. de 2018
That is fine but I wish to crop more face than this codes so where i do changes in code.

Iniciar sesión para comentar.

Respuestas (1)

Explorer
Explorer el 25 de En. de 2014

Categorías

Más información sobre Computer Vision Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by