diff options
author | Théo de la Hogue | 2024-02-06 13:05:32 +0100 |
---|---|---|
committer | Théo de la Hogue | 2024-02-06 13:05:32 +0100 |
commit | d3854b5c35971532d114b15ad3b6dc787da062a4 (patch) | |
tree | b02a88451cb83fcb3370dbe4ca7769e88a59de65 /src | |
parent | 02c931780e08bd21bc6b48136a5430a405478047 (diff) | |
download | argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.zip argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.tar.gz argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.tar.bz2 argaze-d3854b5c35971532d114b15ad3b6dc787da062a4.tar.xz |
Fixing map function.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArFeatures.py | 4 |
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: |