Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

Topic: peekdata help
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Oliver

Posts: 30
Registered: 4/14/09
peekdata help
Posted: Mar 11, 2012 2:57 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi folks, (i've already posted this in the Answer section, not sure where is best)

I'm having a bit of trouble with peekdata.

I have a video object created called 'vid',

I'm using

triggerconfig(vid,'manual');
start(vid);
RGBData = peekdata(vid,1);

This works fine, I get a 3d array in RGBData. But it only works in debug mode. As soon as I run it from the GUI I get...

"Warning: PEEKDATA could not return all the frames requested."

and RGBData is now empty... I can't understand why it works in debug but not when running normally.

thanks in advance, this is driving me nuts.
Ollie

p.s. i'm trying to gather frames from a webcam indefinitely, is there's a better way to go about it?



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.