|
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)
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
Last edited by Uberbots : 10-01-2009 at 18:43.
Reason: borat
|