I use 4x 16H5 ApriTtags with size of (90x90) px on a plane surface at the corners of a rectangle area.
Like i can see them with different view angle, i would like to rotate image by using the apriltag informations.
After locating april tags, i use x_rotation, y_rotation, z_rotation in radians of each april tag.
Then, i convert one of them to degrees for using them in rotation correction of image like :
sensor.snapshot().rotation_corr( x_rotation = math.degrees( apriltag.x_rotation() ), \ y_rotation = math.degrees( apriltag.y_rotation() ), \ z_rotation = math.degrees( apriltag.z_rotation() ) )
but the rotation does not work, specially in z rotation.
The values are effectively weird, like close to 180° on x_rotation…
i tried to swap x_rotation and y_rotation but without better result.
Did i badly understand everything ?