0% found this document useful (0 votes)
46 views1 page

% Update Handles Structure: If Try

Aqui explica como conectar una camara web por medio de matlab como tambien la fucion de tomarla y guardarla ya esto es muy facil de hacer
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

% Update Handles Structure: If Try

Aqui explica como conectar una camara web por medio de matlab como tambien la fucion de tomarla y guardarla ya esto es muy facil de hacer
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

function NOMBREDELPROGRAMA_OpeningFcn(hObject, eventdata, handles, varargin)

handles.output = hObject; % Update handles structure handles.rgb = []; handles.noback = []; guidata(hObject, handles); % This sets up the video camera and starts the preview % Only do this when it's invisible if strcmp(get(hObject,'Visible'),'off') try handles.vidobj = videoinput('winvideo'); % Update handles structure start(handles.vidobj); guidata(hObject, handles); vidRes = get(handles.vidobj, 'VideoResolution'); nBands = get(handles.vidobj, 'NumberOfBands'); hImage = image(zeros(vidRes(2), vidRes(1), nBands), 'Parent',... handles.camarav); preview(handles.vidobj,hImage); catch msgbox('NO HAY CMARA CONECTADA. Cargando Profile.jpg.')
hImage = image(imread('profile.jpg'), 'Parent',handles.camarav);

end end

You might also like