TA的每日心情 | 衰 2019-11-19 15:32 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
" m3 A$ F# S4 @" E一、简介
) [6 d3 B/ n6 j; ^- Y' H
& d( r f; G* `) C6 ^7 M3 F. t基于matlab人脸识别之检测脸、眼、鼻子和嘴
' n' T- n# r/ y& u4 f* }/ |$ w' X; n, F" }3 v2 t8 X- i0 [& r. @
& d" G" K2 m( E* @" i8 @9 i: Y
; f3 R, g, e+ M! j+ e1 ?. m$ G! V
) ]3 e# \+ |: b" `! B! Q8 D# O二、源代码1 X" M5 J# n1 I6 l6 d
+ u. t4 q7 G/ ] A
- reqToolboxes = {'Computer Vision System Toolbox', 'Image Processing Toolbox'};
- if( ~checkToolboxes(reqToolboxes) )
- error('detectFaceParts requires: Computer Vision System Toolbox and Image Processing Toolbox. Please install these toolboxes.');
- end
- img = imread('lena.png');
- detector = buildDetector();
- [bbox bbimg faces bbfaces] = detectFaceParts(detector,img,2);
- figure;imshow(bbimg);
- for i=1:size(bbfaces,1)
- figure;imshow(bbfaces{i});
- end
- % Please uncoment to run demonstration of detectRotFaceParts
- %{
- img = imrotate(img,180);
- detector = buildDetector(2,2);
- [fp bbimg faces bbfaces] = detectRotFaceParts(detector,img,2,15);
- figure;imshow(bbimg);
- for i=1:size(bbfaces,1)
- figure;imshow(bbfaces{i});
- end
- %}' ^: e8 w& T& ?' ^# |
) o8 l0 k! \! w3 j, U
* |, S/ N" F3 G9 u( X2 B7 m三、运行结果
1 d2 j) r: b* Q, c) f6 z5 k# B. J; E/ ^/ j
% e* C5 G9 J, z |
|