diff options
author | Théo de la Hogue | 2024-04-02 22:41:29 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-04-02 22:41:29 +0200 |
commit | 39da6755bd10b385d0f09abdcc366f27b0251ce9 (patch) | |
tree | fcc60facb1a85aa8f7d4a2396b0d55ac0757c34a /src | |
parent | 4ba61fe0b429e9bd68ea3f86383ad6335aee23dc (diff) | |
download | argaze-39da6755bd10b385d0f09abdcc366f27b0251ce9.zip argaze-39da6755bd10b385d0f09abdcc366f27b0251ce9.tar.gz argaze-39da6755bd10b385d0f09abdcc366f27b0251ce9.tar.bz2 argaze-39da6755bd10b385d0f09abdcc366f27b0251ce9.tar.xz |
Display image timestamp if image is timestamped.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArFeatures.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 2c29d3d..2c8fcd0 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -1552,8 +1552,10 @@ class ArContext(DataFeatures.PipelineStepObject): if draw_times: - info_stack += 1 - cv2.putText(image, f'Frame at {image.timestamp}ms', (20, info_stack * 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) + if image.is_timestamped(): + + info_stack += 1 + cv2.putText(image, f'Frame at {image.timestamp}ms', (20, info_stack * 40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) if issubclass(type(self.__pipeline), ArCamera): |