aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2024-01-16 12:54:53 +0100
committerThéo de la Hogue2024-01-16 12:54:53 +0100
commit53ee1a9a6e7ddc1b34fbaa8b0cf2e9936eebcf0d (patch)
treeb7f6ed936d896dd3cefd5accc365ba727c887a87 /src
parent09b321699d0e324d7112ee6a531248ad3c9a719d (diff)
downloadargaze-53ee1a9a6e7ddc1b34fbaa8b0cf2e9936eebcf0d.zip
argaze-53ee1a9a6e7ddc1b34fbaa8b0cf2e9936eebcf0d.tar.gz
argaze-53ee1a9a6e7ddc1b34fbaa8b0cf2e9936eebcf0d.tar.bz2
argaze-53ee1a9a6e7ddc1b34fbaa8b0cf2e9936eebcf0d.tar.xz
Updatimg ArFrame and ArLayers timestamps during ArUcoCamera.watch method.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/ArUcoMarkers/ArUcoCamera.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/argaze/ArUcoMarkers/ArUcoCamera.py b/src/argaze/ArUcoMarkers/ArUcoCamera.py
index 251a081..286afa7 100644
--- a/src/argaze/ArUcoMarkers/ArUcoCamera.py
+++ b/src/argaze/ArUcoMarkers/ArUcoCamera.py
@@ -197,8 +197,12 @@ class ArUcoCamera(ArFeatures.ArCamera):
try:
+ # Update layer aoi
self.layers[layer_name].aoi_scene |= layer_projection
+ # Update layer timestamp
+ self.layers[layer_name].timestamp = timestamp
+
except KeyError:
pass
@@ -211,6 +215,9 @@ class ArUcoCamera(ArFeatures.ArCamera):
# Assess projection time in ms
projection_time = (time.perf_counter() - projection_start) * 1e3
+ # Update camera frame timestamp
+ self.timestamp = timestamp
+
# Unlock camera frame exploitation
self.release()