|
Re: Camera followiing
I'm not a programmer, so I can't give you specifics, but teams have had to do just this in several recent games. For example, in Aim High we "had to" track a green light, and in Lunacy we "had to" track a trailer with either red-over-green cloth or green-over-red cloth.
I put "had to" in quotes because it wasn't mandatory, but better teams could gain a lot from making it work.
So first look back in the archives, maybe something there will help more than the 2012 stuff.
The short version is:
Evaluate the image and find the color you are looking for
Then find the centroid of that color 'blob'
If the centroid is not in the center, turn the (camera, robot) so that it is.
Good luck!
__________________
I am N2IRZ - What's your callsign?
|