'OpenCV aruco, Z-axis doesn't draw properly
I have a problem with function drawAxis in aruco module. Z axis flip and general aren't at 90 degrees (X and Y works fine).
The problem is illustrated by the screen: flip axis
I tried changed camera, detect another markers and do many recalibration (i tried different configuration of photos, between 15 and 100)
When I printed vector of rotation (rvec) I noticed that angle 0 and 1 (x, y?) had small fluctuation, but angle 2 (z?) are in general constant: rvec print
Where could be a problem? If X and Y axis work fine, code should be correct? It's normal that rvec_2 is constant? Or maybe t's my fault with calibration?
Please for any clues! Regards!
Solution 1:[1]
I realize that it is natural and not a bug! In fact Z axis always point toward us and not flipped (You can check the axes generated). What happened is shown in picture bellow because of low resolution or far distance. In fact you see the XY plane the same and think that Z axis flipped in this scenario.
see this for more detail https://github.com/opencv/opencv/issues/8813
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Thomas |

