Tracking colors
Tim Roberts
timr at probo.com
Thu Jan 10 01:49:43 EST 2008
dongie.agnir at 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 at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list