Effacer les filtres
Effacer les filtres

Guide Gui to preview webcam in axes, capture and show the image in axes

6 vues (au cours des 30 derniers jours)
Ankit Singh
Ankit Singh le 8 Mai 2016
Commenté : Muammar Khadafi le 21 Août 2017
function simple_gui_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output =hObject;
axes(handles.FaceCameraaxes);
vid =videoinput('macvideo','FaceTime HD Camera');
hImage=image(zeros(1280,720,3),'Parent',handles.FaceCameraaxes);
preview(vid,hImage);
my webcam resolution is 1280,720, not fitting in the axes;
  1 commentaire
Muammar Khadafi
Muammar Khadafi le 21 Août 2017
function lat1_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
axes(handles.axes1);
vid =webcam('gent1',1);
hImage=image(zeros(720,1280,3),'Parent',handles.axes1);
preview(vid,hImage);
guidata(hObject, handles);
Path but can not get out of form?

Connectez-vous pour commenter.

Réponses (2)

Szabó Dániel
Szabó Dániel le 28 Fév 2017
Hi!
This is the correct form: hImage=image(zeros( 720,1280,3),'Parent',handles.FaceCameraaxes);
Hope, it will be useful for somebody.

yen phuong
yen phuong le 23 Mai 2017
Thanks

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by