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
Tracking 2 lasers (Read 244 times)
Tracking 2 lasers
Feb 1st, 2009, 9:54pm
 
Hi,

I'm currently trying to track multiple laser dots using my webcam. Tracking one laser works fine, as I can track the brightest pixel on the screen.

However, I need to track 2 laser dots ... I tried using a red laser and a green laser and extracting the red and green values from the pixels in the hope that the highest green value would be where the green laser is pointing and the highest red value is where the red laser is pointing.

Unfortunately, the objects seem to follow only one laser at a time, regardless of the colour they're supposed to be following.

Is it a problem with the method i'm using? Are the objects really just tracking the brighest pixel, even though i'm extracting specific red and green values?

If anybody could shed some light on how I can get this working, I'd be grateful.

Thanks,
H
Page Index Toggle Pages: 1