what code i will write to capture image from camera open in axes1
Mostra commenti meno recenti
function cameraex_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. handles.output = hObject; vid=videoinput('winvideo',1); set(vid,'ReturnedColorSpace','rgb'); vidRes=get(vid,'VideoResolution'); width=vidRes(1); height=vidRes(2); nBands=get(vid,'NumberOfBands'); hImage=image(zeros(height,width,nBands)); axes(handles.axes1); %axes(handles.axes1); preview(vid,hImage)
"This code open camera in axes1 now i want to capture image on click pushbutton1. what will code on pushbutton."
1 Commento
Anshika Jain
il 15 Set 2018
Modificato: Anshika Jain
il 15 Set 2018
Risposte (0)
Categorie
Scopri di più su MATLAB Support Package for USB Webcams in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!