diff options
author | Théo de la Hogue | 2023-02-15 10:43:10 +0100 |
---|---|---|
committer | Théo de la Hogue | 2023-02-15 10:43:10 +0100 |
commit | 70145ed6af27153e76dcb695d5116c6cd194b004 (patch) | |
tree | f8ee218284bf872f3adf2bb290795bb835bbf060 /src | |
parent | 776d40a3188a304c7db57b021095ad633c9eff77 (diff) | |
download | argaze-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.py | 4 |
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(): |