How do I use .NET to find an orange ball in an image?

Posted by JohnS on Stack Overflow See other posts from Stack Overflow or by JohnS
Published on 2010-05-05T00:09:25Z Indexed on 2010/05/05 0:38 UTC
Read the original article Hit count: 386

Filed under:
|
|

I'm getting images from a C328R camera attached to a small arduino robot. I want the robot to drive towards orange ping-pong balls and pick them up. I'm using the C# code supplied by funkotron76 at http://www.codeproject.com/KB/recipes/C328R.aspx.

Is there a library I can use to do this, or do I need to iterate over every pixel in the image looking for orange? If so, what kind of tolerance would I need to compensate for various lighting conditions?

I could probably test to figure out these numbers, but I'm hoping someone out there knows the answers.

© Stack Overflow or respective owner

Related posts about c#

Related posts about image-processing