user interface - Show camera inputs at different axes - MATLAB -


I have 3 webcam and 3 axis in the catalog GUI. I have WebCinute1 to accesses 1, webcammin2 to accesses2 and episodes How can I keep WebcamMinute 3 from 3?

This will be useful if you get input from the webcam and display it on the screen, its Give more information about

I think you are using the Image Acquisition Toolbox. The normal code for displaying webcam input is

  vid = videoinput ('winvideo'); Preview (VID)  

Also accept image object handles as a second parameter. You can first create the image object and use your axis to preview:

  vid1 = videoinput ('winvideo', 1); Create video input object from% 1 source vid2 = videoinput ('winvideo', 2); Create video input object from% 2 source subplot (211) H1 = image; Ij% flip image preview (vid1, h1)% display to create% object object axis 1 webcam preview subplot (212)% h2 = image corresponding to camera 2; Axis ij preview (vid2, h2)  

I do not have many webcams, so I did not test this code, but I hope it will work for many cameras.


Comments