Guide Gui to preview webcam in axes, capture and show the image in axes
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
Muammar Khadafi
2017-8-21
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?
回答(2 个)
Szabó Dániel
2017-2-28
Hi!
This is the correct form: hImage=image(zeros( 720,1280,3),'Parent',handles.FaceCameraaxes);
Hope, it will be useful for somebody.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!