View Single Post
  #1   Spotlight this post!  
Unread 16-01-2014, 09:31
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Vision Tracking the Hot Goal LEDs

I personally wouldn't try to see the color specifically but rather the brightness. You could align your robot left or right of the center of the goal, but in a position that the camera can see both the left and right sides of the I. With some pretty simple brightness filters, you should be able to detect if your side or the other side is hotter.

If you are only using this to detect hotness, then I would also align the camera so the target is in the top portion of your view, that way you can filter out the lower section. Given you have a line for alignment you may even want to filter out some of the area in the middle of the goal to avoid noise from the crowd etc.

If you're using rgb, you could use a custom threshold like minimum of rgb, or if your camera sees the yellow you could use a min average threshold of RG.

Then split you screen into three columns and calculate the average brightness of the three. If you're in the hot side two of the three should show up as hot, if you're on the cold side, only one of the three should show up hot.
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote