From abf551bded02db905095fbad506d6faf610a7fc1 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Mon, 19 Sep 2022 21:41:48 +0200 Subject: Adding a copy method to TobiiVideo class. --- src/argaze/TobiiGlassesPro2/TobiiVideo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/argaze/TobiiGlassesPro2/TobiiVideo.py b/src/argaze/TobiiGlassesPro2/TobiiVideo.py index 7625c3c..2cc12cf 100644 --- a/src/argaze/TobiiGlassesPro2/TobiiVideo.py +++ b/src/argaze/TobiiGlassesPro2/TobiiVideo.py @@ -21,6 +21,10 @@ class TobiiVideoFrame(): width: int height: int + def copy(self): + """Copy tobii video frame.""" + return TobiiVideoFrame(self.matrix.copy(), self.width, self.height) + class TobiiVideoSegment(): """Handle Tobii Glasses Pro 2 segment video file.""" -- cgit v1.1