From b3419a18d9f02a789228a50d69bdb3ed332ca00a Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Thu, 18 Jul 2024 00:11:02 +0200 Subject: Adding parent class. --- src/argaze/utils/contexts/OpenCV.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/argaze/utils/contexts/OpenCV.py b/src/argaze/utils/contexts/OpenCV.py index 6859a0c..e921db0 100644 --- a/src/argaze/utils/contexts/OpenCV.py +++ b/src/argaze/utils/contexts/OpenCV.py @@ -74,7 +74,7 @@ class Cursor(ArFeatures.ArContext): self._process_gaze_position(timestamp = int((time.time() - self._start_time) * 1e3), x = x, y = y) -class Movie(Cursor): +class Movie(Cursor, ArFeatures.DataPlaybackContext): """Playback movie images and capture cursor position over OpenCV window. !!! warning @@ -225,7 +225,7 @@ class Movie(Cursor): return 0. -class Camera(Cursor): +class Camera(Cursor, ArFeatures.DataCaptureContext): """Capture camera images and capture cursor position over OpenCV window. !!! warning -- cgit v1.1