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.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › using camera input to move screen objects
Page Index Toggle Pages: 1
using camera input to move screen objects (Read 1440 times)
using camera input to move screen objects
Aug 28th, 2005, 3:01pm
 
I am new to processing and would like to move graphical elements on the screen in a way that matches real objects moving past a camera, in realtime.

Can anyone point me in the right direction? As I say I am new to this so please explain as you would to your granny.

Re: using camera input to move screen objects
Reply #1 - Oct 3rd, 2005, 3:16pm
 
It depends what you want to do as what you have described could mean many things. If you want to have a movement in the camera frame resulting in a movement to on the screen you could write a frame difference algorithm and use this to drive motion.

A more advanced technique would be to use a edge detection or blob detection library (v3ga's or JMyron for instance) can do this. The main drawback to doing it in Java is java. It really isn't the best language to be doing something so intensive and you need cutting edge equipment to make it work in java.

There are other packages out there that may be slightly better at this like Eyesweb, ARToolKit and MAX/Jitter but they all have their pluses and minuses.

Some tips for you to help performance are the smaller the camera captured image the less processing it's going to take. If you can work out a way so that the screen object moves from an interpolated result from the camera image it may make things easier if you only update the camera intermittently.
Re: using camera input to move screen objects
Reply #2 - Oct 3rd, 2005, 6:13pm
 
Check this thread and read it carefully:

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