diff options
author | Théo de la Hogue | 2024-06-20 22:53:51 +0200 |
---|---|---|
committer | Théo de la Hogue | 2024-06-20 22:53:51 +0200 |
commit | 503bdfc20e4aaf14b23913ecb93e8ff1c915bc99 (patch) | |
tree | 9d005184509948e043c2ebaa5bd7ac5749446753 /src | |
parent | e88b426fb971dafade919f184045ce3421c55e89 (diff) | |
download | argaze-503bdfc20e4aaf14b23913ecb93e8ff1c915bc99.zip argaze-503bdfc20e4aaf14b23913ecb93e8ff1c915bc99.tar.gz argaze-503bdfc20e4aaf14b23913ecb93e8ff1c915bc99.tar.bz2 argaze-503bdfc20e4aaf14b23913ecb93e8ff1c915bc99.tar.xz |
Making TobiiProGlasses2 post processing context to play at realtime fps by default.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/utils/contexts/TobiiProGlasses2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/argaze/utils/contexts/TobiiProGlasses2.py b/src/argaze/utils/contexts/TobiiProGlasses2.py index e3c68b0..1f7ae13 100644 --- a/src/argaze/utils/contexts/TobiiProGlasses2.py +++ b/src/argaze/utils/contexts/TobiiProGlasses2.py @@ -1403,8 +1403,13 @@ class PostProcessing(ArFeatures.PostProcessingContext): data_list.append((next_data_ts, next_data_object, next_data_object_type)) next_data_ts, next_data_object, next_data_object_type = self.__next_data() + # TODO: Add attribute to disable realtime replay + time.sleep( (next_video_ts - self.__video_ts) * 1e-3 ) + + # Output video and data output = self.__video_ts, self.__video_image, data_list + # Store next video image as current self.__video_ts, self.__video_image = next_video_ts, next_video_image return output |