aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-02-06 13:05:32 +0100
committerThéo de la Hogue2024-02-06 13:05:32 +0100
commitd3854b5c35971532d114b15ad3b6dc787da062a4 (patch)
treeb02a88451cb83fcb3370dbe4ca7769e88a59de65
parent02c931780e08bd21bc6b48136a5430a405478047 (diff)
downloadargaze-d3854b5c35971532d114b15ad3b6dc787da062a4.zip
argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.tar.gz
argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.tar.bz2
argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.tar.xz
Fixing map function.
-rw-r--r--src/argaze/ArFeatures.py4
1 files 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: