diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/utils/demo/recorders.py | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/argaze/utils/demo/recorders.py b/src/argaze/utils/demo/recorders.py index 07d97e1..979eaff 100644 --- a/src/argaze/utils/demo/recorders.py +++ b/src/argaze/utils/demo/recorders.py @@ -117,61 +117,3 @@ class AOIScanPathAnalysisRecorder(UtilsFeatures.FileWriter): ) self.write(log) - - -class ArUcoMarkersPoseRecorder(DataFeatures.PipelineStepObject): - - @DataFeatures.PipelineStepInit - def __init__(self, **kwargs): - - # Init private attributes - self.__output_folder = None - self.__size = None - - @property - def output_folder(self) -> str: - """folder path where to write ArUco markers pose.""" - return self.__output_folder - - @output_folder.setter - def output_folder(self, output_folder: str): - - self.__output_folder = output_folder - - @property - def size(self) -> float: - """Expected size in centimeters of detected markers.""" - return self.__output_folder - - @size.setter - def size(self, size: float): - - self.__size = size - - @property - def ids(self) -> list: - """Ids of markers to estimate pose (default all).""" - return self.__ids - - @ids.setter - def ids(self, ids: list): - - self.__ids = ids - - def on_detect_markers(self, timestamp, aruco_detector, exception): - - logging.info('%s writes estimated markers pose into %s', DataFeatures.get_class_path(self), self.__output_folder) - - if self.__size is not None: - - # Estimate all detected markers pose - aruco_detector.estimate_markers_pose(self.__size, ids = self.__ids) - - # Build ArUco markers group from detected markers - aruco_markers_group = ArUcoMarkerGroup.ArUcoMarkerGroup(dictionary=aruco_detector.dictionary, places=aruco_detector.detected_markers()) - - if self.__output_folder is not None: - - # Write ArUco markers group - aruco_markers_group.to_obj(f'{self.__output_folder}/{int(timestamp)}-aruco_markers_group.obj') -
\ No newline at end of file |