From ae5270e05c95a05a3bb14ea5a7ab2cf2c32c9f03 Mon Sep 17 00:00:00 2001 From: Dominic Canare Date: Mon, 9 Dec 2024 06:39:45 -0500 Subject: [PATCH] Can send async frames as-is --- psychopy_eyetracker_pupil_labs/pupil_labs/neon/eyetracker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/psychopy_eyetracker_pupil_labs/pupil_labs/neon/eyetracker.py b/psychopy_eyetracker_pupil_labs/pupil_labs/neon/eyetracker.py index fc571eb..a038459 100644 --- a/psychopy_eyetracker_pupil_labs/pupil_labs/neon/eyetracker.py +++ b/psychopy_eyetracker_pupil_labs/pupil_labs/neon/eyetracker.py @@ -466,7 +466,6 @@ def bg_gaze_mapper(host, port, input_queue, output_queue): async_mapper = AsyncQueueMapper(host, port, input_queue, output_queue) asyncio.run(async_mapper.run_tasks()) - class AsyncQueueMapper: def __init__(self, host, port, input_queue, output_queue): self.host = host @@ -543,8 +542,7 @@ async def receive_and_queue_scene_data(self, status): if self.stop_event.is_set(): break - bgr_buffer = frame.bgr_buffer() - self.gaze_mapper.process_scene(bgr_buffer) + self.gaze_mapper.process_scene(frame) async def receive_and_queue_gaze_data(self, status): sensor_gaze = status.direct_gaze_sensor()