|
Re: Finding green/pink flags
Try this,
1. Log into the camera
2. Goto Advanced Settings and set White Balance to Hold
3. Goto Settings and turn down the brightness 20% of what it's set too
4. Goto Live video settings and take a screen shot (Alt + Print Screen)
5. Open MSPaint and Paste in the Picture, save as a JPG
6. Open Labview Vision Assistant, Open the file, and
7. Select Color, then Color Threshold, and then Color Model:HSL
8. Play with the Hue, Sat, Lum levels until most of the target is high lighted red
9. Set the new levels by updating tdata parameters, here is the list, these worked for me. You only need to set the values you changed in Vision Assistant.
//tdata.hue.minValue = 60;
//tdata.hue.maxValue = 80;
//tdata.saturation.minValue = 34;
//tdata.saturation.maxValue = 200;
//tdata.luminance.minValue = 128;
//tdata.luminance.maxValue = 240;
Edit: Also, it's a really good idea to start with the simple tracker demo 100% unmodified. Then you can tell if it's you or the camera values.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Last edited by Kingofl337 : 04-01-2009 at 21:32.
|