TA的每日心情 | 衰 2019-11-19 15:32 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
- f* k' J3 t- @8 K7 C( B2 y
一、简介- B4 P1 o" p+ V% W
) P5 q- n5 B" A) p! o+ @) ^基于matlab人脸识别之检测脸、眼、鼻子和嘴0 z4 Z1 K% ]( Q( W4 f4 {
# }8 h D9 @8 ^2 V* ?( n! B: _
. V$ v0 E4 u$ ~0 e A9 t- w7 @
, I0 ]% x4 i( z& ^5 J* f
' f- o0 k% h3 G) a* y; s; K二、源代码$ l, U" q3 U& M8 J
2 D; c. ?7 @4 L6 d6 `* }9 [; b: B" v
- 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
- %}: N9 X7 A/ z+ f2 ^2 F+ ]: D" ]
; P% N* l [+ t: R2 ~, T p# Y1 `- f& K3 k0 ~3 M. @# H' D
三、运行结果4 Q1 p- N/ @4 X) m' u- w
/ `2 a8 h# u/ F- @. X. l5 r/ d
k7 c3 }# k3 P' G4 r" C |
|