我想在matlab中进行面部检测教程 [英] i want tutorial for face detection in matlab
问题描述
%使用Viola-Jones算法检测对象
%检测面部
FDetect = vision.CascadeObjectDetector;
%阅读输入图像
我= imread('HarryPotter.jpg');
%根据对象数返回Bounding Box值
BB = step(FDetect,I);
数字,
imshow(I);保持
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',5,'LineStyle ',' - ','EdgeColor','r');
结束
title('人脸检测');
推迟;
这对于快速回答论坛来说太过分了。相反,请检查一下:使用MATLAB第一部分进行人脸检测 [< a href =http://www.ece301.com/ml-doc/54-face-detect-matlab-1.html\"target =_ blanktitle =新窗口> ^ ]
%Detect objects using Viola-Jones Algorithm
%To detect Face
FDetect = vision.CascadeObjectDetector;
%Read the input image
I = imread('HarryPotter.jpg');
%Returns Bounding Box values based on number of objects
BB = step(FDetect,I);
figure,
imshow(I); hold on
for i = 1:size(BB,1)
rectangle('Position',BB(i,:),'LineWidth',5,'LineStyle','-','EdgeColor','r');
end
title('Face Detection');
hold off;
This is too much for a quick answer forum. Instead, check this out: Face Detection using MATLAB Part I[^]
这篇关于我想在matlab中进行面部检测教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!