‹ back to Other Classwork

NotesOther Classwork · 22 October 2022

Images

a = imread(‘face.jpg’);
a = imresize(a,0.98);
detector = vision.CascadeObjectDetector(‘Mouth’);

detector.MergeThreshold = 100;

bbox = step(detector, a);
videoOut = insertObjectAnnotation(a,’rectangle’,bbox,’Mouth’);
imshow(videoOut);

First published on fatsup.wordpress.com ↗