From d3854b5c35971532d114b15ad3b6dc787da062a4 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 6 Feb 2024 13:05:32 +0100 Subject: Fixing map function. --- src/argaze/ArFeatures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 611a7af..43c017e 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -1492,7 +1492,7 @@ class ArCamera(ArFrame): for frame in self.scene_frames(): # Is there an AOI inside camera frame layers projection which its name equals to a scene frame name? - for camera_layer_name, camera_layer in self.__layers.items(): + for camera_layer_name, camera_layer in self.layers.items(): try: @@ -1502,7 +1502,7 @@ class ArCamera(ArFrame): width, height = frame.size destination = numpy.float32([[0, 0], [width, 0], [width, height], [0, height]]) mapping = cv2.getPerspectiveTransform(aoi_2d.astype(numpy.float32), destination) - frame.background = cv2.warpPerspective(self.__background, mapping, (width, height)) + frame.background = cv2.warpPerspective(self.background, mapping, (width, height)) # Ignore missing frame projection except KeyError: -- cgit v1.1