TA的每日心情 | 衰 2019-11-19 15:32 |
|---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
: i) z# a+ c" {+ ]; g* u" m. A一、简介. S, L' C' p, k0 \: \9 k' k, E
; [2 o5 p7 _8 [, _7 M! w9 \
基于matlab人脸识别之检测脸、眼、鼻子和嘴! _3 ]8 h# |7 u
. }1 s4 a" s! [1 O
( q! i2 k8 x7 X/ x* O' |; E
0 l. y. @2 q: ?
* n* \1 p- D& y二、源代码
+ s9 U0 @3 V8 Y" u; _+ B' T' a6 b" M4 E' w
- 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
- %}
( e& j& I1 U2 C' x; }2 l
. ?, j( r) h0 a7 J
. D9 N K1 P, _0 d5 y3 { S& n; d三、运行结果
& {5 d; `' V3 O/ S+ Y( N0 `' I) Z9 [! h7 c; g5 |
3 V) i+ x0 s s- N+ s% B5 j3 S
|
|