|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Finding green/pink flags
Quote:
![]() |
|
#2
|
||||
|
||||
|
Re: Finding green/pink flags
I helped team 1124 make the red/blue target tracker with great success (double thumbs up).
in labview, you basically copy the image from the camera, do a color threshold for each picture, do a particle report for each picture, and decide which one of those reports is the "top" color and which is the "bottom" color. once you have that data, you run a loop as follows: for each "top color: check if the area of the color is big enough. if so: for each "bottom" color: check if the bottom color is directly below (with some tolerance) the "top" color. add the "top" target to the output targets array that basic algorithm allowed us to differentiate between red/green targets and green/red targets. there was a slight bit of extra post-processing to deal with multiple visible targets (basically you pick the uppermost one or the largest one etc). what you do with the final target(s) is up to you... we cached the previous target position and velocity to do second-degree motion prediction for the target in case we lose it. (amongst other things) Last edited by Uberbots : 10-01-2009 at 18:43. Reason: borat |
|
#3
|
||||
|
||||
|
Re: Finding green/pink flags
It appears as though an update on this matter has been posted (an example)
http://first.wpi.edu/FRC/frcupdates.html |
|
#4
|
||||
|
||||
|
Re: Finding green/pink flags
Our programming team has tried all of the listed ideas, and still have had no luck, so we really need some help. Any suggestions please
|
|
#5
|
|||
|
|||
|
Re: Finding green/pink flags
If you really want help, can you break it down? What works, what doesn't, what have you tried, what environment are you using?
My first suggestion would be to try running and learning from one of the vision examples. Greg McKaskle |
|
#6
|
||||
|
||||
|
Re: Finding green/pink flags
We have set up the camera correctly, with the CAT-5 cable. We debugged the code, tried it with the bug , updated all firmware and software and gotten nothing. The CRIO is still getting nothing from the camera
|
|
#7
|
||||
|
||||
|
Re: Finding green/pink flags
The CRIO kept posting error messages
|
|
#8
|
|||
|
|||
|
Re: Finding green/pink flags
Make sure you are using the orange cross over cable. What are do the error messages.
Greg McKaskle |
|
#9
|
|||
|
|||
|
Re: Finding green/pink flags
It will help if we know what these error messages are.
1. Use the Orange Crossover cable with the camera. 2. Make sure the camera is set correctly (Brightness = 40, Light settings = Flourescent 1) using the Axis instructions after connecting the Cam to your PC. Make sure you hit "Save" after the changes to the cam. 3. Make sure that the Green/Pink is the right way up as the program expects it - in the program (C/C++) there is a setting for ABOVE and BELOW. If the colors are reversed to what the program expects it won't find it. 4. Make sure that the cam is receiving signal by watching for the Green light around the lens. 5. Make sure your target is not too close or too bright. 6. For the C/C++ code, teams will have to play around a bit with cam settings and HSL values to make sure everything works. 7. The C/C++ code is based on SimpleRobot so once it is out of Autonomous, it won't go back to Auto even if you flip the DS Auto/Tele Switch - you will have reboot the cRIO with the Autonomous enabled on the DS. |
|
#10
|
|||
|
|||
|
Re: Finding green/pink flags
One thing that may solve many peoples problems:
>> Test the two-color tracking routines in a room WITHOUT windows << Daylight coming in from outside *can* change the color of the targets from the camera's perspective. You will want to test in a room with only fluorescent lighting. Additionally, you will want to have equal lighting on the target from all directions (no shadows around the periphery of the target). I hope these tips help. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flags???? | cprogrammer | Programming | 4 | 25-07-2005 20:21 |
| Flags | trdragons204 | General Forum | 2 | 23-03-2005 10:29 |
| Concerns regarding the green paneling/green shirts | Petey | General Forum | 127 | 15-01-2005 10:35 |
| 6 Flags | Raven_Writer | Chit-Chat | 12 | 30-07-2004 23:01 |
| Six Flags? | Hermione692 | Championship Event | 29 | 29-04-2003 21:12 |