aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-01-18 18:39:07 +0100
committerThéo de la Hogue2023-01-18 18:39:07 +0100
commitef71d4599ff4cc622f9cd597fee8a39a6c5742af (patch)
tree928bf3c9f8e87811e0abdd2d8b45673e6a8e2318 /src
parentd46216a4277f5e14d6ccb4616fc9046ebe77bf5b (diff)
downloadargaze-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.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoTracker.py4
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