View Single Post
  #2   Spotlight this post!  
Unread 10-03-2012, 19:57
dvanvoorst dvanvoorst is offline
Registered User
FRC #2771 (Code Red)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Grand Rapids, MI
Posts: 61
dvanvoorst is an unknown quantity at this point
Re: Using camera to track rectangles

It's not too hard to get some basic functionality. One warning though - at this late date you want to be very careful about adding image processing code to your robot. If not done well, it can introduce significant lag issues.

That being said...you want to start by making sure you have the latest update for the FRC libraries in your Netbeans. A new sample program was added part way into the build season. Create a new project, go to Samples, then FRC Java, and choose the "CameraTestProject". This will give you a sample program that has the key image processing routines in it.
It also includes sample images to test with and a Vision Assistant script to experiment with.
Using Vision Assistant (which should be on your Drivers Station) is hugely helpful in testing and tuning your image processing routines. Vision Assistant can also be used to acquire your own real images to test with.

Hopefully that will get you started! It's some pretty neat stuff.

Dale Van Voorst
Reply With Quote