diff options
author | Théo de la Hogue | 2023-10-06 00:15:42 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-10-06 00:15:42 +0200 |
commit | 07d8e2535a8d902d5cb731d8343ebc349c198d65 (patch) | |
tree | bd1284bf0aea4710974d7dccf22d0d4c2326a34e /src | |
parent | 1e39f54a7222ed53c7c514be555e06aa5e7372b7 (diff) | |
download | argaze-07d8e2535a8d902d5cb731d8343ebc349c198d65.zip argaze-07d8e2535a8d902d5cb731d8343ebc349c198d65.tar.gz argaze-07d8e2535a8d902d5cb731d8343ebc349c198d65.tar.bz2 argaze-07d8e2535a8d902d5cb731d8343ebc349c198d65.tar.xz |
Assessing visualisation time even when no image is read.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/utils/demo_aruco_markers_run.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/argaze/utils/demo_aruco_markers_run.py b/src/argaze/utils/demo_aruco_markers_run.py index 6c22695..5e1ac2e 100644 --- a/src/argaze/utils/demo_aruco_markers_run.py +++ b/src/argaze/utils/demo_aruco_markers_run.py @@ -150,6 +150,11 @@ def main(): # Display scene frame cv2.imshow(f'{scene_frame.parent.name}:{scene_frame.name}', scene_frame.image()) + else: + + # Assess visualisation time + visualisation_start = time.time() + # Stop by pressing 'Esc' key # NOTE: on MacOS, cv2.waitKey(1) waits ~40ms if cv2.waitKey(1) == 27: |