Error using webcam/preview Too many input arguments.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166915/image.png)
If the above stage succeeds how to photograph the image from Tag: axes1 and display in Tag: axes2. thank you for helping me.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!