MATLAB: Extracting face part in a image extracting help me out, how to extract face part in a image having so many faces and how to arrange those face in a order… Best Answer It's in the Computer Vision System Toolbox Related SolutionsMATLAB: How to crop detected face part Try this:rgbImage = imread('face.jpeg');rgbImage = imresize(rgbImage,1);subplot(2, 3, 1);imshow(rgbImage);axis('on', 'image');drawnow;detector=vision.CascadeObjectDetector('mouth');detector.MergeThreshold=60;allBoundingBoxes=step(detector,rgbImage)out = insertObjectAnnotation(rgbImage,'rectangle',allBoundingBoxes,'mouth Detected','LineWidth',3,'TextColor','black');subplot(2, 3, 2);imshow(out)axis('on', 'image');% Crop out each bounding box to a new image.for k = 1 : size(allBoundingBoxes, 1) % Crop the image. thisBoundingBox = allBoundingBoxes(k, :); croppedImage = imcrop(rgbImage, thisBoundingBox); % Display it subplot(2, 3, k+2); imshow(croppedImage) axis('on', 'image');end MATLAB: Face recognation Search the File Exchange. The computer vision toolbox has face detection (not recognition). Related QuestionExtract part from an image
Best Answer