The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: GUI Axes display a live video has a obvious time delay
Replies: 1   Last Post: Apr 16, 2012 10:40 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 3
Registered: 4/15/12
GUI Axes display a live video has a obvious time delay
Posted: Apr 16, 2012 10:31 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello everyone,

I made a GUI using GUIDE with one Axes component, which is fill most of the screen. One camera is connected with the laptop, and the live video is displayed on the Axes component. There is a obvious time delay. Is there anyone who can modify my code to make it more efficient? Another problem is after I close the GUI, the execution in the Loop would not stop, it is still trying to capture one image and display. Is there some way to stop this?

More description:
pixels of screen 1600x900. Axes 1600x883; pixels of image 1600x896; I added my code to the Opening_Fcn of the GUI.

obj=videoinput('winvideo', 1,'RGB24_1600x896');
set(gcf, 'Position', get(0,'Screensize'));
while (exist('hObject','var'));
Iam=Icamx(8:888,:,:);% as Axes is smaller than image, part of the image is display.
axis off;
clear obj;

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.