|
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
|