diff options
author | Théo de la Hogue | 2023-07-05 17:58:03 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-07-05 17:58:03 +0200 |
commit | ce43c0e9f100aa0eaec2f39a258e92ffc5cc44a8 (patch) | |
tree | 471afb94ecd59dd569cd4724dc0420cfcb2b0ecc /src | |
parent | 5253d5464ed2512f05bc3c4ad31f9fdf110fc36e (diff) | |
download | argaze-ce43c0e9f100aa0eaec2f39a258e92ffc5cc44a8.zip argaze-ce43c0e9f100aa0eaec2f39a258e92ffc5cc44a8.tar.gz argaze-ce43c0e9f100aa0eaec2f39a258e92ffc5cc44a8.tar.bz2 argaze-ce43c0e9f100aa0eaec2f39a258e92ffc5cc44a8.tar.xz |
Adding ignored gaze positions buffer.
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/ArFeatures.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py index 09edc6c..5604a1d 100644 --- a/src/argaze/ArFeatures.py +++ b/src/argaze/ArFeatures.py @@ -772,6 +772,9 @@ class ArEnvironment(): # Init a lock to share AOI scene projections into camera frame between multiple threads self.__camera_frame_lock = threading.Lock() + # Define public timestamp buffer to store ignored gaze positions + self.ignored_gaze_positions = GazeFeatures.TimeStampedGazePositions() + @classmethod def from_dict(self, environment_data, working_directory: str = None) -> ArEnvironmentType: @@ -991,8 +994,10 @@ class ArEnvironment(): # Can't use camera frame when it is locked if self.__camera_frame_lock.locked(): - #TODO: Store ignored timestamped gaze positions for further projections - print('Ignoring ', timestamp, gaze_position) + # TODO: Store ignored timestamped gaze positions for further projections + # PB: This would imply to also store frame projections !!! + self.ignored_gaze_positions[timestamp] = gaze_position + return # Lock camera frame exploitation |