diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py b/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py index 1cce648..36960f3 100644 --- a/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py +++ b/src/argaze/ArUcoMarkers/ArUcoMarkersGroup.py @@ -317,7 +317,13 @@ class ArUcoMarkersGroup(DataFeatures.PipelineStepObject): except IOError: raise IOError(f'File not found: {obj_filepath}') - return ArUcoMarkersGroup(new_dictionary, new_places) + # Instantiate ArUco markers group + data = { + 'dictionary': new_dictionary, + 'places': new_places + } + + return ArUcoMarkersGroup(**data) def filter_markers(self, detected_markers: dict) -> tuple[dict, dict]: """Sort markers belonging to the group from given detected markers dict (cf ArUcoDetector.detect_markers()). |