View Single Post
  #8   Spotlight this post!  
Unread 13-01-2009, 09:43
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Camera not working

Quote:
Originally Posted by foemill View Post
It does tha same thing when I select realistic values grabbed from VisionAssist.
We spent the last 3 days trying to figure out why our realistic values didn't work, just like you. The bugs we found are why.

FindColor goes like this:
1) Selects all pixels in the latest camera image that match your color [this part is fine]
2) Treats groups of selected pixels as particles [this part is fine]
3) Takes the very first particles, regardless of size, and analyzes it [this is a bug because of bugs in GetLargestParticle and InArea]
4) Returns the analysis of this first group, rather than an analysis of the biggest set found.

That is why FindColor is broken, even for realistic colors.