View Single Post
  #7   Spotlight this post!  
Unread 13-01-2012, 11:11
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Which color are you tracking with your Camera?

Look at the pictures on page 6.

With white, you can perform the initial filter/mask, then your convex hull operation. While this identifies the targets, it also identifies a bunch of other "stuff" - lights, reflections from the plexiglass, even the basketball nets. That makes this operation difficult to use, since you then have to go on to filter our the blobs you don't want. There are other ways to identify what you want (like the edge detection mentioned later), but in general they're going to take more processing power to work, from my experience.

With another color, you don't have that problem. You can perform your original filter/mask, then a convex hull operation. Now you're left with only your targets showing up, and no extraneous "stuff" you have to filter out - take the center of each blob and your done!

You just need to watch out for that pesky team at your regional wearing bright green shirts... you don't want to detect them!