From 090d851221d7dfcb37f1b3332cbd1df4e6fac77f Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Mon, 19 Dec 2022 19:50:10 +0100 Subject: Storing rotation matrix instead of rotation vector. --- src/argaze/ArUcoMarkers/ArUcoTracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argaze/ArUcoMarkers/ArUcoTracker.py b/src/argaze/ArUcoMarkers/ArUcoTracker.py index 7909434..d5c8cea 100644 --- a/src/argaze/ArUcoMarkers/ArUcoTracker.py +++ b/src/argaze/ArUcoMarkers/ArUcoTracker.py @@ -171,7 +171,7 @@ class ArUcoTracker(): if estimate_pose: marker.translation = markers_tvecs[i][0] - marker.rotation = markers_rvecs[i][0] + marker.rotation, _ = cv.Rodrigues(markers_rvecs[i][0]) marker.points = markers_points.reshape(4, 3) self.__tracked_markers[marker_id] = marker -- cgit v1.1