How can I continually update the UI Axes in App Designer to display images from a CMOS camera?
Mostra commenti meno recenti
I would like to create a video feed in the UI Axes in App Designer. At the moment, I am updating the CData of the figure, though I am having large lag times. The code that I am using runs quickly--in about 100ms--but the image on the UI Axes updates approximately every two seconds. Preferably, the video feed would run parallel so that I can also interact with my GUI simultaneously. Is there a way to use the UI Axes to run this type of figure?
3 Commenti
Sarah Mohamed
il 15 Set 2017
Are you using the 'drawnow' function to update the axes immediately?
Cody LaBelle
il 15 Set 2017
Modificato: Cody LaBelle
il 15 Set 2017
Sarah Mohamed
il 15 Set 2017
I see, thanks for trying that out. Could you share the code you are using to update the UIAxes?
Risposte (1)
karim botros
il 7 Mar 2018
Modificato: karim botros
il 24 Gen 2022
it works in app designer
you can use global var if you want to use the object camera in another function
global cam
im=image(zeros(340,340,3),'Parent',app.UIAxes);
preview(cam,im);
setappdata(app.UIAxes, 'cam', cam);
2 Commenti
Ahmer Shahid
il 13 Nov 2018
I cannot get the camera on axis by this code.
karim botros
il 26 Gen 2022
make sure that the camera is connected to matlab
Categorie
Scopri di più su Annotations 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!