View Single Post
  #6   Spotlight this post!  
Unread 05-02-2011, 17:46
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: 2011 Camera Code on Driver Station

Quote:
Originally Posted by ZonChau View Post
I plan on using reflection from infrared if possible, if not LED off of the reflection tape on the scoring peg. The Camera will detect this. I have set the camera to grey-scale since full color is unnecessary and take up more space. Maybe use the reflection detected to also detect a circle with some help from the occlusion feature. This can further be used possibly to calculate distance from that circle or help align the robot to the column.
This software runs on the driver station with the camera plugged into the netgear router. The program does all of the calculations to determine where the reflective tape is and then subtracts the background (the green and red area) then the frame is run through openCV to detect the blobs and do those calculations. Finally the blobs are compared to each other to determine which ones are in a column. Other calculations coming would be angle and distance to targets.

The software then returns the target information (not the image) to the cRio where you would then do your own processing.