필터 지우기
필터 지우기

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

조회 수: 6 (최근 30일)
Ankit Singh
Ankit Singh 2016년 5월 8일
댓글: Muammar Khadafi 2017년 8월 21일
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
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
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.

yen phuong
yen phuong 2017년 5월 23일
Thanks

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by