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???

Answers (1)

Image Analyst
Image Analyst on 27 Feb 2013
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 Comment

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.

Sign in to comment.

Categories

Find more on MATLAB Support Package for USB Webcams in Help Center and File Exchange

Asked:

on 27 Feb 2013

Community Treasure Hunt

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

Start Hunting!