Guide Gui to preview webcam in axes, capture and show the image in axes
조회 수: 6 (최근 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!