diff options
author | Théo de la Hogue | 2024-03-22 20:52:26 +0100 |
---|---|---|
committer | Théo de la Hogue | 2024-03-22 20:52:26 +0100 |
commit | b55f4b2b6d944c37136048da023cac0aff79950c (patch) | |
tree | 7a71cd358da7dfa118ec54ba0ad5b15ac86b5b93 /src | |
parent | 918e5cc0be31a2ac7f762d836d5b70add2024c5c (diff) | |
download | argaze-b55f4b2b6d944c37136048da023cac0aff79950c.zip argaze-b55f4b2b6d944c37136048da023cac0aff79950c.tar.gz argaze-b55f4b2b6d944c37136048da023cac0aff79950c.tar.bz2 argaze-b55f4b2b6d944c37136048da023cac0aff79950c.tar.xz |
Fixing ArUcoMarkersGroup instanciation.
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()). |