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