diff options
-rw-r--r-- | src/argaze/utils/contexts/TobiiProGlasses2.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/argaze/utils/contexts/TobiiProGlasses2.py b/src/argaze/utils/contexts/TobiiProGlasses2.py index 80c4bdc..d9dbdea 100644 --- a/src/argaze/utils/contexts/TobiiProGlasses2.py +++ b/src/argaze/utils/contexts/TobiiProGlasses2.py @@ -743,14 +743,14 @@ class LiveStream(ArFeatures.DataCaptureContext): if image is None: # Wait for half frame time - time.sleep(2 / self.__video_fps) + time.sleep(0.5 / self.__video_fps) continue # Check image time validity if image.time is None: # Wait for half frame time - time.sleep(2 / self.__video_fps) + time.sleep(0.5 / self.__video_fps) continue # Store first timestamp @@ -787,7 +787,8 @@ class LiveStream(ArFeatures.DataCaptureContext): while not self._stop_event.is_set(): # Wait for half frame time - time.sleep(2 / self.__video_fps) + # TODO: Consider camera image processing time to adapt waiting time + time.sleep(0.5 / self.__video_fps) # Lock buffer access with self.__video_buffer_lock: |