Image Processing in MATLAB Tutorial 3 - Face Features Detection
This is a tutorial series on the image processing toolbox on MATLAB. It mainly aims at demonstrating the functions in an easy and understandable. To watch other videos in this playlist, visit: • Image Processing in MATLAB
In this video, we use the Cascade Object Detector built into MATLAB to detect the facial features from an image. It uses the Viola Jones algorithm. We also explore how we can optimize the threshold values to get better results. Please note that this function might be available only in the latest versions of MATLAB.
Code:
a = imread('face.jpg');
a = imresize(a,0.25);
detector = vision.CascadeObjectDetector('Mouth');
detector.MergeThreshold = 100;
bbox = step(detector, a);
videoOut = insertObjectAnnotation(a,'rectangle',bbox,'Mouth');
imshow(videoOut);
By: Surya Penmetsa