Matlab Gui - Adquire Video
Mostra commenti meno recenti
Hello guys,
I have one app matlab gui to adquire one vídeo IP from my telephone.
When i press connect, I start transmitting the image in an 'axe' and it works fine.
But i need one function for when i press 'DISCONNECT' button, he Stop transmitting the image and clean the graphic, i try do: cla, delete, but nothing do.
Can you help me?

My code:
% --- Executes on button press in connect.
function connect_Callback(hObject, eventdata, handles)
global vid;
% hObject handle to connect (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
vid = ipcam('http://100.75.51.93:8081/', 'admin', '12345');
while true
[Imag_filled1, Imag_in1] = IPProcessamentoRed(vid);
axes(handles.axes1);
imshow(Imag_in1);
axes(handles.axes2);
imshow(Imag_filled1);
end
% --- Executes on button press in disconnect.
function disconnect_Callback(hObject, eventdata, handles)
global vid;
stop(vid);
flushdata(vid);
cla(handles.axes1);
delete(vid);
clear vid
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Startup and Shutdown 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!