TA的每日心情 | 衰 2019-11-19 15:32 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
: g1 v3 a* `6 m" F E一、简介
1 m; g+ p% _5 B1 e' U
) a, U6 Q1 S7 ^! x5 W基于matlab人脸识别之检测脸、眼、鼻子和嘴( N) \( B) Q1 X8 C5 o% I
2 z/ w5 {; ?, U0 f+ G- j! x
: X2 I# }0 a9 I6 b- T
8 }0 g& q v0 t4 F6 m- J
3 \9 ]7 B8 V% Q# g* A0 D: ]二、源代码' ~8 Y4 |- B) a
: q1 L+ I, ^" J9 C7 p& ]2 l
- 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
- %}
2 z* G: v) v9 i+ L& ?
+ v4 ]& w6 ^$ K9 `$ _( @0 P$ ^" F1 r. _2 g( f
三、运行结果: O; S' s7 B, G' h% ?, X0 o6 v! c
- @% Y4 Y+ W# W* z+ n
8 ~5 ~: P7 m0 g( P6 Q
|
|