471,318 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Tracking colors

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?
Jan 9 '08 #1
1 1280
do**********@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, ti**@probo.com
Providenza & Boekelheide, Inc.
Jan 10 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kyle Friesen via AccessMonster.com | last post: by
11 posts views Thread by Paul Smith | last post: by
6 posts views Thread by A.M-SG | last post: by
2 posts views Thread by Roy | last post: by
reply views Thread by LiveTecs | last post: by
5 posts views Thread by jennic | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.