aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTheo De La Hogue2023-09-23 08:11:40 +0200
committerTheo De La Hogue2023-09-23 08:11:40 +0200
commit998d6c1b6c4216d887f74375e262147a6fbeff67 (patch)
tree1933a2794cd54e92118b5277dca8aa5ee694fa29 /src
parent0410c9980f2c243caa2f2f4f72b814efb72ac654 (diff)
downloadargaze-998d6c1b6c4216d887f74375e262147a6fbeff67.zip
argaze-998d6c1b6c4216d887f74375e262147a6fbeff67.tar.gz
argaze-998d6c1b6c4216d887f74375e262147a6fbeff67.tar.bz2
argaze-998d6c1b6c4216d887f74375e262147a6fbeff67.tar.xz
Fixing map method to use clockwise order.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArFeatures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py
index 10e9687..a419d93 100644
--- a/src/argaze/ArFeatures.py
+++ b/src/argaze/ArFeatures.py
@@ -1483,7 +1483,7 @@ class ArCamera(ArFrame):
# Apply perspective transform algorithm to fill aoi frame background
width, height = frame.size
- destination = numpy.float32([[0, height],[width, height],[width, 0],[0, 0]])
+ 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))