kyle-bersani / opencv-examples

Python code for OpenCV and Aruco tests and examples
MIT License
114 stars 33 forks source link

angle between the Normal vector (blue axis) of the Aruco marker and the center of the camera #1

Open mateusguilhermedasilva opened 4 years ago

mateusguilhermedasilva commented 4 years ago

Is it possible to find the angle between the Normal vector (blue axis) of the Aruco marker and the center of the camera? I am using your code to develop a robot. I have more details (images) of what I am trying to do in the following topics:

https://answers.opencv.org/question/224823/calculate-distance-between-the-center-of-the-aruco-marker-and-the-center-of-the-camera/

https://answers.ros.org/question/341690/how-to-calculate-the-distance-between-the-center-of-the-aruco-marker-and-the-center-of-the-camera/

slowrunner commented 2 years ago

If you follow the example in https://www.youtube.com/watch?v=XFBKwme5HYk to calibrate

and then the example in https://www.youtube.com/watch?v=cIVZRuVdv1o

and perhaps look at my changes for my robot: https://github.com/slowrunner/Carl/tree/master/Examples/OpenCV/aruco

https://forum.dexterindustries.com/t/carl-wanders-into-augmented-reality/9018/12?u=cyclicalobsessive

You can figure it out for your robot.