From 9146d4dfc26adebf77e50e6c390384c52759f9ce Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Tue, 28 May 2024 16:16:07 +0200 Subject: Sendin map signal to frame observers. --- src/argaze/ArFeatures.py | 7 ++++--- 1 file 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: -- cgit v1.1