首页 > 代码库 > matlab 人面检测

matlab 人面检测

Create a detector object.

faceDetector = vision.CascadeObjectDetector;
Read input image.

I = imread(‘visionteam.jpg‘);
Detect faces.

bboxes = step(faceDetector, I);
Annotate detected faces.

IFaces = insertObjectAnnotation(I, ‘rectangle‘, bboxes, ‘Face‘);
figure, imshow(IFaces), title(‘Detected faces‘);

matlab 人面检测