diff options
author | Theo De La Hogue | 2023-09-23 08:11:40 +0200 |
---|---|---|
committer | Theo De La Hogue | 2023-09-23 08:11:40 +0200 |
commit | 998d6c1b6c4216d887f74375e262147a6fbeff67 (patch) | |
tree | 1933a2794cd54e92118b5277dca8aa5ee694fa29 /src | |
parent | 0410c9980f2c243caa2f2f4f72b814efb72ac654 (diff) | |
download | argaze-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.py | 2 |
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)) |