Tim Roberts
1/10/2008 6:50:00 AM
dongie.agnir@gmail.com wrote:
>
>I'm just getting started with Python, and I want to do a bit of color
>tracking using VideoCapture. However, I've never worked with video or
>images, so I'm a little at a loss. How would I use VideoCapture to
>track a specified color, and its coordinates?
There's really no easy way to do this. You'll have to convert the image to
an array of pixels, then search through them to find a block of the color
you're interested in. Remember that camera sensors are real-world devices,
so the actual pixel values vary slightly from frame to frame. You'll have
to look for a range.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.