Quote:
Originally Posted by 2549wootwoot
Does anybody know how to write a program where our camera would locate the target and tell us the distance to the target.
|
There are multiple ways you could do this mathematically. But I'm not very good with the code when it comes to the camera. What exactly do you need to know the distance to the target for? You can approximate pretty easily just by looking at which section your robot is in. My suggestion: set your camera below the target and have it look parallel (paralell?) to the ground then use the angle of elevation to the center of the target to find the distance. Ask your math teacher for help with this method, it uses some trigonometry.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.