aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-05-28 16:16:07 +0200
committerThéo de la Hogue2024-05-28 16:16:07 +0200
commit9146d4dfc26adebf77e50e6c390384c52759f9ce (patch)
tree4068085560390a71376b28657f44cecb2ec40b2a
parent8509a152272d3d9fe987b76cc8d22cb196c959f9 (diff)
downloadargaze-9146d4dfc26adebf77e50e6c390384c52759f9ce.zip
argaze-9146d4dfc26adebf77e50e6c390384c52759f9ce.tar.gz
argaze-9146d4dfc26adebf77e50e6c390384c52759f9ce.tar.bz2
argaze-9146d4dfc26adebf77e50e6c390384c52759f9ce.tar.xz
Sendin map signal to frame observers.
-rw-r--r--src/argaze/ArFeatures.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py
index f838db0..79af23c 100644
--- a/src/argaze/ArFeatures.py
+++ b/src/argaze/ArFeatures.py
@@ -1446,9 +1446,10 @@ 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 = DataFeatures.TimestampedImage(
- cv2.warpPerspective(self.background, mapping, (width, height)),
- timestamp=self.background.timestamp)
+ frame.background = DataFeatures.TimestampedImage(cv2.warpPerspective(self.background, mapping, (width, height)), timestamp=self.background.timestamp)
+
+ # Notify frame 'on_map' signal observers
+ frame.send_signal('map', timestamp=self.background.timestamp)
# Ignore missing frame projection
except KeyError: