We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Speed problems with webcam (Read 1143 times)
Speed problems with webcam
Jun 29th, 2005, 11:01pm
 
I have been testing JMyron's Processing example:

 Myron_simpleCamera

by resetting the video resolution to 640 x 480
in the code. I am getting roughly 0.5 fps on
a 3.4GHz machine with a Logitech notebook
webcam (the small dark grey one that props up on
top of the notebook). The above app for Processing
simply redirects the video stream, via Processing
code, to a window.

The problem is the poor speed: 0.5 fps (if that). Has
anyone had any better luck with getting reasonable
frame rates (15fps or higher) in Processing? I am
using vdig inside of Windows XP. The Logitech camera
software, standalone, runs great at 640 x 320 -- very
fast frame rate.
Re: Speed problems with webcam
Reply #1 - Jul 1st, 2005, 3:55am
 
Here is a really nice JMF implementation using a webcam
if you happen to have a Logitech camera, which I have
here at home:

http://www.mutong.com/fischer/java/usbcam/

I followed the instructions and got an ultra fast video
stream from the webcam -- all in Java. Although I haven't
gone through the .java code in great detail, I am
guessing that JMF is supporting a mass/frame data
transfer (rather than pixel at a time, which just
doesn't cut it).
Re: Speed problems with webcam
Reply #2 - Jul 7th, 2005, 6:48pm
 
Just wanted to close this thread - the problems
I had seemed to be due to 2 things: (1) the
example that I chose in JMyron was slow because
it copied every pixel rather than grabbing a frame,
and (2) there appears to be some significant speed
issues with JMyron compared with the Processing
video library: See:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=VideoCamera;action=display;num=1117818806
Page Index Toggle Pages: 1