Quote:
Originally Posted by acrilex
Thanks,
I was looking for static overlay, I will look forward into a widget. Dynamic image might also be useful, so thank you for the idea. Also, do someone here have an idea in how to calculate the angle of a such line, knowing that the camera will be placed once and not moved afterward. I have a simple idea, which could work but is long to set up. I could simply put a peg or similar with a rope attached to the robot and make it go forward to verify the perspective and draw a line over the rope, using it as the overlay, but I would like to know if there is a math way to calculate the perspective angle knowing that the camera will be placed directly in the middle of the robot. I think it would be related to vectors, but I am not really good in this aspect of maths. Can someone help?
Alexandre Croteau
Senateurs 5179
Coding team (Java RoboRIO, specialized in autonomous)
|
If you're looking for a static overlay, I would try a transparent png file on top of the camera window in smartdashboard. Never done it but it might work, not near a computer right now to try it