aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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."""