aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2022-05-31 09:08:10 +0200
committerThéo de la Hogue2022-05-31 09:08:10 +0200
commit475dce83b1b894401731ea12489af3aa94f80785 (patch)
tree5f28d1e0f77305ce897b7aa7451937a9f166e739
parentdad3191ce9173f8a1d2b1be60bc6e3542f80e648 (diff)
downloadargaze-475dce83b1b894401731ea12489af3aa94f80785.zip
argaze-475dce83b1b894401731ea12489af3aa94f80785.tar.gz
argaze-475dce83b1b894401731ea12489af3aa94f80785.tar.bz2
argaze-475dce83b1b894401731ea12489af3aa94f80785.tar.xz
Catching None case during ArUco marker tracking.
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoTracker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoTracker.py b/src/argaze/ArUcoMarkers/ArUcoTracker.py
index 6a71e86..55166ee 100644
--- a/src/argaze/ArUcoMarkers/ArUcoTracker.py
+++ b/src/argaze/ArUcoMarkers/ArUcoTracker.py
@@ -192,7 +192,10 @@ class ArUcoTracker():
def get_markers_ids(self):
"""Get tracked markers identifers."""
- return [i[0] for i in self.__markers_ids]
+ if self.__markers_ids is not None:
+ return [i[0] for i in self.__markers_ids]
+ else:
+ return []
def get_marker_corners(self, i):
"""Get marker i corners."""