aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-02-15 10:43:10 +0100
committerThéo de la Hogue2023-02-15 10:43:10 +0100
commit70145ed6af27153e76dcb695d5116c6cd194b004 (patch)
treef8ee218284bf872f3adf2bb290795bb835bbf060 /src
parent776d40a3188a304c7db57b021095ad633c9eff77 (diff)
downloadargaze-70145ed6af27153e76dcb695d5116c6cd194b004.zip
argaze-70145ed6af27153e76dcb695d5116c6cd194b004.tar.gz
argaze-70145ed6af27153e76dcb695d5116c6cd194b004.tar.bz2
argaze-70145ed6af27153e76dcb695d5116c6cd194b004.tar.xz
Ordering corners list in clockwise order.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArScene.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/ArScene.py b/src/argaze/ArScene.py
index 1f8caba..184f6d6 100644
--- a/src/argaze/ArScene.py
+++ b/src/argaze/ArScene.py
@@ -302,11 +302,11 @@ class ArScene():
# Each aoi's corner is defined by a marker's corner
aoi_corners = []
- for corner in ["upper_left_corner", "upper_right_corner", "lower_left_corner", "lower_right_corner"]:
+ for corner in ["upper_left_corner", "upper_right_corner", "lower_right_corner", "lower_left_corner"]:
aoi_corners.append(self.aruco_tracker.tracked_markers[aoi[corner]["marker_identifier"]].corners[0][aoi[corner]["marker_corner_index"]])
- aruco_aoi_scene[aruco_aoi_name] = AOIFeatures.AreaOfInterest(aoi_corners).clockwise()
+ aruco_aoi_scene[aruco_aoi_name] = AOIFeatures.AreaOfInterest(aoi_corners)
# Then each inner aoi is projected from the current aruco aoi
for inner_aoi_name, inner_aoi in self.aoi_scene.items():