Trouble with Raspberry Pi 4B in GUI design

1 visualización (últimos 30 días)
To Tran Luan
To Tran Luan el 28 de Oct. de 2021
So the problem is i was trying to take a snap shot and display the snapped picture on the Axes1 in the GUI that I design.
the code suppose to be recognize mypi and cam, variable as a value, but in this case there aren't any variable shown when the button1 is pushed. Please help. thank you
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
clear all
mypi=raspi;
cam = cameraboard(mypi,'Resolution', '1280x720');
img=snapshot(cam);
axes(handles.axes1);
imagesc(img);

Respuestas (0)

Categorías

Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by