diff options
-rw-r--r-- | src/argaze/ArFeatures.py | 7 |
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: |