TA的每日心情 | 衰 2019-11-19 15:32 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
$ ]7 Y5 `- Q, }& d& s- X. f$ p
一、简介
7 Y( J. y5 I7 u1 G9 a5 r7 C8 J$ k5 u, M3 e
基于matlab人脸识别之检测脸、眼、鼻子和嘴
7 |' W) j* [: v2 ~
3 N5 j0 b, W, [1 w; ^9 t5 h
7 f3 ^9 Z1 b; |$ |. l1 {
6 [$ v: [' p* m9 J j8 D ^( [2 X/ b3 Z" N1 X! p7 ^( J2 Z+ @
二、源代码9 C" p" t# s' \
) f: a0 d9 i4 M2 B) v$ E
- 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
- %}7 X7 i" d/ ^7 E b1 _
7 O) Y. j. L7 B9 y G( `
. E! p) y' w: {$ v* L9 b三、运行结果+ h- L4 z* [4 `% Z6 L8 |. B5 g* z
6 w0 k) ~' D }+ A/ ]8 N8 b
% J& ~7 @! R8 c$ ?, c4 w% @& t
|
|