|
[Vision Tracking][Offering Tracking Tutorial/Help]
Good news everyone! Team 1939 has vision tracking up and running on robot code. As one of the lead programmers on the team, I've learned a lot through the process and I'm offering help to any team that needs any assistance with tracking. If you would like some assistance, PM me on the forums and I can point you in the right direction.
To teams that have programming experience:
In order to get code to work for tracking, find the example "rectangle tracking example.vi" (Or something like this) under the Vision section of the support category in lab view. Go To the block diagram (ctrl-e) and then copy all of the code inside of the while loop and save it to another VI.
Next, Open up a robot project from the Labview splash screen and open the VI that you just created. Under team code, go to the vision tracking VI and paste the code from your saved VI into the inner most while loop box. then simply wire the purple image stream from inside the loop to the top left corner of your imported code. Then just run robot main.VI, (with your bridge connecting your laptop, axis camera, and robot), then open up the front panel of your vision tracking vi and look at the image viewers, If your camera is appropriately set up, you should see what the camera is seeing.
Then, simply click the "Luminance" Tab above the original image and adjust the sliders such that the target is being tracked (with retro reflective tape and a flashlight next to the camera. then you get a Target Array out with the X, Y , and distance.
Thanks for Listening!
ps: Later today i can get some of the code in Sub Vi form so that teams can drag and drop. But please actually look into the code to learn how it functions!
-Thomas Team 1939
__________________
-Team 1939 The Barstow Ku-Nig-Its!
|