Question Regarding MATLAB GUI, a problem while playing back a live video.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Akira Chan
am 7 Sep. 2015
Kommentiert: Akira Chan
am 14 Sep. 2015
Greetings programmers,
I have completed my codes for live video streaming and wanted to move into GUI to make it look nicer. The problem I have encountered is that when I put my codes into my Start Button Callback function, Matlab always opens another window to show me the video instead of inside the created Axel when I was creating the GUI. Previously I have created a GUI using image processing which uses this function: preview() to show vide insides of axel.
In this coding, my final output is a step(OriginalVideo, FinalProcessed). How do I make it in such a way that my video will stay inside the axel instead of a separate window?
Thank you very much.
Regards,
Akira
2 Kommentare
Walter Roberson
am 7 Sep. 2015
Please show the code you use in your Start Button Callback, along with the code you use to play the video.
Akzeptierte Antwort
Walter Roberson
am 7 Sep. 2015
vision.VideoPlayer() appears to always create a new Figure to display the content in. It cannot be configured to display the video in an axes.
To play video in an axis, see the example http://www.mathworks.com/help/vision/examples/video-display-in-a-custom-user-interface.html
Unfortunately the key routine for that, showFrameOnAxis() is example code that I do not have access to so I do not know how it works.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!