フィルターのクリア

Error using webcam/preview Too many input arguments.

1 回表示 (過去 30 日間)
Muammar Khadafi
Muammar Khadafi 2017 年 8 月 28 日
Hi guys, My name is Ammar Saja. I am a student. I have this kind of problem again :
VidObj = webcam (1);
handles.VidObj = VidObj;
% VidRes = get (handles.VidObj, 'Resolution');
% NBands = get (handles.VidObj, 'NumberOfBands');
axes (handles.axes1)
HImage = image (zeros (640,480, 1));
preview (handles.VidObj, hImage)
Set (VidObj, 'returnedcolorspace', 'rgb');
guidata (hObject, handles);
when I dock appears in the Command Window like below:
Error using webcam / preview
Too many input arguments.
Error in Camera> pushbutton1_Callback (line 118)
preview (handles.VidObj, hImage)
Error in gui_mainfcn (line 95)
        feval (varargin {:});
Error in Camera (line 46)
    Gui_mainfcn (gui_State, varargin {:});
Error in
@ (hObject, eventdata) Camera ('pushbutton1_Callback', hObject, eventdata, guidata (hObject))
 
Error while evaluating uicontrol Callback
>>
And displays a blue image in the Tag: axes1.
this is the actual picture.
If the above stage succeeds how to photograph the image from Tag: axes1 and display in Tag: axes2. thank you for helping me.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by