Creating a Video Display in a GUI

I currently trying to put a video display that will except inputs from multiple cameras and switch seamlessly between different cameras in a GUI that is controlling the cameras that are providing the video. Thus far I have had no success. Does anyone have any ideas???

Réponses (1)

Image Analyst
Image Analyst le 27 Fév 2013

0 votes

I haven't done it with two cameras but I have with one camera. I used the preview() function. Have you tried that yet?

1 commentaire

Christopher
Christopher le 28 Fév 2013
I have used preview. However, preview has a few limitations that hinder the development of my GUI that I was trying to avoid.
For example, the program that I am currently using the GUI for is building an image from multiple cameras and then exporting the image to a figure. As I understand it, preview can only read raw video or a file, but not a function variable. So I would have to save to a file and have preview() read that file. This is produces overhead that I’m trying to reduce the program.
Also preview, as I have seen thus far, tends to take over the size of my GUI and I personally have not seen an automated way to scale the size of the preview window to the size of my GUI window.
Thanks for the idea though, if you know a way to get around these two problems. Please let me know. It would be greatly appreciated.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Support Package for USB Webcams dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by