From 475dce83b1b894401731ea12489af3aa94f80785 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 31 May 2022 09:08:10 +0200 Subject: Catching None case during ArUco marker tracking. --- src/argaze/ArUcoMarkers/ArUcoTracker.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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.""" -- cgit v1.1