View Single Post
  #3   Spotlight this post!  
Unread 25-01-2012, 23:56
Tommy.Brown's Avatar
Tommy.Brown Tommy.Brown is offline
Lead Programmer
FRC #1477 (Texas Torque)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2011
Location: The Woodlands
Posts: 27
Tommy.Brown is an unknown quantity at this point
Re: Axis Camera Tracking

Ah, well working with nivision.h for image processing is already difficult enough. Basically your program flow will look like the following:

Take in image from the camera -> Apply threshold to the image -> convex hull operation -> edge detection -> get the corner edges so that you know how far you are away from the target in pixels. (All of these functions can be found in nivision.h or in the Vision folder in WPILib)


Having it send the cues to the DriverStation will be and issue. If you have yet to do so, look into SmartDashboard in WPILib or NetworkTables in WPILib. With them you should be able to freely send data back and forth between the cRIO and the DriverStation.
__________________
FRC Team 1477 - Texas Torque
The Woodlands, Texas
Reply With Quote