diff options
author | Théo de la Hogue | 2023-01-18 18:39:07 +0100 |
---|---|---|
committer | Théo de la Hogue | 2023-01-18 18:39:07 +0100 |
commit | ef71d4599ff4cc622f9cd597fee8a39a6c5742af (patch) | |
tree | 928bf3c9f8e87811e0abdd2d8b45673e6a8e2318 | |
parent | d46216a4277f5e14d6ccb4616fc9046ebe77bf5b (diff) | |
download | argaze-ef71d4599ff4cc622f9cd597fee8a39a6c5742af.zip argaze-ef71d4599ff4cc622f9cd597fee8a39a6c5742af.tar.gz argaze-ef71d4599ff4cc622f9cd597fee8a39a6c5742af.tar.bz2 argaze-ef71d4599ff4cc622f9cd597fee8a39a6c5742af.tar.xz |
Editing marker translation, rotation and points even when no pose estimation is done.
-rw-r--r-- | src/argaze/ArUcoMarkers/ArUcoTracker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoTracker.py b/src/argaze/ArUcoMarkers/ArUcoTracker.py index 07c15d0..37c567e 100644 --- a/src/argaze/ArUcoMarkers/ArUcoTracker.py +++ b/src/argaze/ArUcoMarkers/ArUcoTracker.py @@ -173,6 +173,10 @@ class ArUcoTracker(): marker.translation = markers_tvecs[i][0] marker.rotation, _ = cv.Rodrigues(markers_rvecs[i][0]) marker.points = markers_points.reshape(4, 3) + else: + marker.translation = numpy.empty([0]) + marker.rotation = numpy.empty([0]) + marker.points = numpy.empty([0]) self.__tracked_markers[marker_id] = marker |