TA的每日心情 | 衰 2019-11-19 15:32 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
! q& x- [1 E: V
一、简介
4 Y9 A0 F; R5 W- W: @1 d
+ x J9 M4 x' u0 b; n* ^; `基于matlab人脸识别之检测脸、眼、鼻子和嘴, a2 x8 h, u _6 e
2 X; D% F) U; f5 R! q( z
) Y1 W {6 g- @0 i( |! K; ?& B' v: ]; h' y1 u6 B
8 I- f! j1 U. U二、源代码" L5 Q5 V# e4 Q4 T+ C# I, o: H
& J) y; A+ s5 m" i' E' r, c
- 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
- %}
/ w- r% ?4 ^5 \6 ~" F u% } m% F 2 G: Z/ ]5 ^+ ~0 B% {8 q& ~
' Y$ w& I! `" P3 r$ V
三、运行结果
% {7 p7 T. B( j! S+ _! |5 a$ s d5 B5 ~' F4 D5 f
" l7 ]+ E9 i) c5 f: g |
|