From 03a0313ee5bc07b7457f0c4f6e29d3bafd3d1c3c Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 20 Jun 2023 10:10:39 +0200 Subject: First draft to link sub AOIs under a parent AOI. --- src/argaze/ArFeatures.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 0eba2e1..033e290 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -184,6 +184,8 @@ class ArScene(): aoi_scene: AOI 3D scene description that will be projected onto estimated scene once its pose will be estimated : see [project][argaze.ArFeatures.ArScene.project] function below. + aoi_frames: Link sub AOIs to a parent AOI (e.g. AOIFrame). By default all AOIs are linked to orthogonal_projection. + aruco_axis: Optional dictionary to define orthogonal axis where each axis is defined by list of 3 markers identifier (first is origin). \ This pose estimation strategy is used by [estimate_pose][argaze.ArFeatures.ArScene.estimate_pose] function when at least 3 markers are detected. @@ -196,6 +198,7 @@ class ArScene(): aruco_scene: ArUcoScene.ArUcoScene = field(default_factory=ArUcoScene.ArUcoScene) aoi_scene: AOI3DScene.AOI3DScene = field(default_factory=AOI3DScene.AOI3DScene) + aoi_frames: dict = field(default_factory=dict) aruco_axis: dict = field(default_factory=dict) aruco_aoi: dict = field(default_factory=dict) angle_tolerance: float = field(default=0.) @@ -209,6 +212,8 @@ class ArScene(): # Preprocess orthogonal projection to speed up further aruco aoi processings self.__orthogonal_projection_cache = self.orthogonal_projection + print(self.aoi_frames) + def __str__(self) -> str: """ Returns: -- cgit v1.1