diff options
-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 |