Detección de partes faciales MATLAB

7
Universidad Aut ónoma de N uevo León Facultad de Ingeniería Mecánica y Eléctrica Clase y Laboratorio de rocesamiento !igital de Imagen royecto Final " ráctica #$ Nombre% edro Elías Aguilar &odrígue' " Matrícula% #()*+)) Nombre% ,esus Ale-andro Moya Fonseca " Matricula% #*)*.*. /ora Clase% M. /ora Laboratorio% Martes M#"M+ Maestro% M0I0 Emily 1aucedo Mariscal

Transcript of Detección de partes faciales MATLAB

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 1/7

Universidad Autónoma de Nuevo León

Facultad de Ingeniería Mecánica y Eléctrica

Clase y Laboratorio de rocesamiento !igital deImagen

royecto Final " ráctica #$

Nombre% edro Elías Aguilar &odrígue' " Matrícula% #()*+))

Nombre% ,esus Ale-andro Moya Fonseca " Matricula% #*)*.*.

/ora Clase% M. /ora Laboratorio% Martes M#"M+

Maestro% M0I0 Emily 1aucedo Mariscal

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 2/7

Cd0 Universitaria2 a 3 de Mayo de +$#*

Actividad 10

royecto 4inal

Este 5royecto nos ayudará a 5oder entender me-or los conocimientos ad6uiridosen el laboratorio y 5onerlos en 5ráctica con una a5licación2 las cual se es5eci4icará5or el instructor0

Programación

function varargout = ProyectoPdi2(varargin)% PROYECTOPDI2 MAT A! code for ProyectoPdi2"fig% PROYECTOPDI2# $y it e&f# create a ne' PROYECTOPDI2 or rai e t ee i ting% ing&eton*"%% + = PROYECTOPDI2 return t e and&e to a ne' PROYECTOPDI2 or t eand&e to% t e e i ting ing&eton*"%% PROYECTOPDI2(,CA !AC-,# O$.ect#eventData# and&e #""") ca&& t e&oca&% function na/ed CA !AC- in PROYECTOPDI2"M 'it t e given in0utargu/ent "%% PROYECTOPDI2(,Pro0erty,#,1a&ue,#""") create a ne' PROYECTOPDI2 orrai e t e% e i ting ing&eton*" tarting fro/ t e &eft# 0ro0erty va&ue 0airare

% a00&ied to t e 34I $efore ProyectoPdi25O0ening6cn get ca&&ed" An% unrecogni7ed 0ro0erty na/e or inva&id va&ue /a8e 0ro0ertya00&ication% to0" A&& in0ut are 0a ed to ProyectoPdi25O0ening6cn viavarargin"%% * ee 34I O0tion on 34IDE, Too& /enu" C oo e 934I a&&o' on&yone% in tance to run ( ing&eton)9"%% ee a& o: 34IDE# 34IDATA# 34I+A;D E % Edit t e a$ove te t to /odify t e re 0on e to e&0 ProyectoPdi2

% a t Modified $y 34IDE v2"< >?May?2 @ 2B: @:B@ % !egin initia&i7ation code ? DO ;OT EDITgui5 ing&eton = @gui5 tate = truct( ,gui5;a/e, # /fi&ena/e# """ ,gui5 ing&eton, # gui5 ing&eton# """ ,gui5O0ening6cn, # ProyectoPdi25O0ening6cn# """ ,gui5Out0ut6cn, # ProyectoPdi25Out0ut6cn# """ ,gui5 ayout6cn, # F # """

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 3/7

,gui5Ca&&$ac8, # F)if nargin GG i c ar(vararginH@ ) gui5 tate"gui5Ca&&$ac8 = tr2func(vararginH@ )end if nargout varargoutH@:nargout F = gui5/ainfcn(gui5 tate# vararginH: )e& e gui5/ainfcn(gui5 tate# vararginH: )end% End initia&i7ation code ? DO ;OT EDIT

% ??? E ecute .u t $efore ProyectoPdi2 i /ade vi i$&e"function ProyectoPdi25O0ening6cn( O$.ect# eventdata# and&e # varargin)% T i function a no out0ut arg # ee Out0ut6cn"% O$.ect and&e to figure% eventdata re erved ? to $e defined in a future ver ion of MAT A!% and&e tructure 'it and&e and u er data ( ee 34IDATA)% varargin co//and &ine argu/ent to ProyectoPdi2 ( ee 1ARAR3I;) % C oo e defau&t co//and &ine out0ut for ProyectoPdi2and&e "out0ut = O$.ect % 40date and&e tructureguidata( O$.ect# and&e ) % 4IJAIT /a8e ProyectoPdi2 'ait for u er re 0on e ( ee 4IRE 4ME)% ui'ait( and&e "figure@)

% ??? Out0ut fro/ t i function are returned to t e co//and &ine"function varargout = ProyectoPdi25Out0ut6cn( O$.ect# eventdata# and&e )% varargout ce&& array for returning out0ut arg ( ee 1ARAR3O4T)% O$.ect and&e to figure% eventdata re erved ? to $e defined in a future ver ion of MAT A!% and&e tructure 'it and&e and u er data ( ee 34IDATA) % 3et defau&t co//and &ine out0ut fro/ and&e tructurevarargoutH@ = and&e "out0ut

% ??? E ecute on $utton 0re in CargarI/agen"function CargarI/agen5Ca&&$ac8( O$.ect# eventdata# and&e )% O$.ect and&e to CargarI/agen ( ee 3C!O)% eventdata re erved ? to $e defined in a future ver ion of MAT A!% and&e tructure 'it and&e and u er data ( ee 34IDATA)fi&ena/e 0at na/eF=uigetfi&e( ,*".0g *"$/0 *".0eg *"0ng , # , e&ecciona unaI/agen, )i/gna/e= 0at na/e fi&ena/eFa e ( and&e "a e @)i/ o'(i/gna/e) tit&e( ,I/agen Origina&, )% et( and&e "te tB#, tring,#i/gna/e) % ??? E ecute on $utton 0re in Detector inRuido"

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 4/7

function Detector inRuido5Ca&&$ac8( O$.ect# eventdata# and&e )% O$.ect and&e to Detector inRuido ( ee 3C!O)% eventdata re erved ? to $e defined in a future ver ion of MAT A!% and&e tructure 'it and&e and u er data ( ee 34IDATA)K=geti/age( and&e "a e @)Mout Detect = vi ion"Ca cadeO$.ectDetector( ,Mout , # ,MergeT re o&d, #@ )!!= te0(Mout Detect#K)a = i7e(!!)a e ( and&e "a e 2)i/ o'(K) o&d on

for i = @: i7e(!!#@) rectang&e( ,Po ition, #!!(i#:)# , ineJidt , #L# , ine ty&e, # ,?, # ,EdgeCo&or, # ,r, )end %To detect EyeEyeDetect =vi ion"Ca cadeO$.ectDetector( ,EyePair!ig, # ,MergeT re o&d, #@ )!!= te0(EyeDetect#K) o&d onfor i = @: i7e(!!#@) rectang&e( ,Po ition, #!!(i#:)# , ineJidt , #L# , ine ty&e, # ,?, # ,EdgeCo&or, # ,$, )end %To detect ;o e;o eDetect = vi ion"Ca cadeO$.ectDetector( ,;o e, # ,MergeT re o&d, #@ )!! = te0(;o eDetect# K) o&d onfor i = @: i7e(!!#@) rectang&e( ,Po ition, #!!(i#:)# , ine'idt , #L# , ine ty&e, # ,?, # ,EdgeCo&or, # ,g, )end a e ( and&e "a e 2)i/ o'(!!) tit&e( ,6aceDetect, ) % ??? E ecute on $utton 0re in Ruido3au "function Ruido3au 5Ca&&$ac8( O$.ect# eventdata# and&e )% O$.ect and&e to Ruido3au ( ee 3C!O)% eventdata re erved ? to $e defined in a future ver ion of MAT A!% and&e tructure 'it and&e and u er data ( ee 34IDATA)oi/g=geti/age( and&e "a e @)rgau =i/noi e(oi/g# ,gau ian, )a e ( and&e "a e B)i/ o'(rgau ) tit&e( ,I/agen con Ruido 3au , ) % ??? E ecute on $utton 0re in 6aceDetect"

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 5/7

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 6/7

function a&ir5Ca&&$ac8( O$.ect# eventdata# and&e )% O$.ect and&e to a&ir ( ee 3C!O)% eventdata re erved ? to $e defined in a future ver ion of MAT A!% and&e tructure 'it and&e and u er data ( ee 34IDATA)conf= ue td&g( ,NE t eguro ue uiere a&ir , # , a&ir, # ,Ye , # ,;o, # ,;o, )'itc conf ca e ,Ye , c&o e(gcf) ca e ,;o, returnend

Anexo

8/16/2019 Detección de partes faciales MATLAB

http://slidepdf.com/reader/full/deteccion-de-partes-faciales-matlab 7/7