From 2ed293a98ce055679e06f1f28d2e5d54bfec14da Mon Sep 17 00:00:00 2001 From: Robert Ennis Date: Wed, 16 Oct 2024 14:25:45 +0200 Subject: [PATCH] fix attr name to extract video frames to numpy array --- .../neon_recording/stream/av_stream/base_av_stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pupil_labs/neon_recording/stream/av_stream/base_av_stream.py b/src/pupil_labs/neon_recording/stream/av_stream/base_av_stream.py index f734f5e..dc5693f 100644 --- a/src/pupil_labs/neon_recording/stream/av_stream/base_av_stream.py +++ b/src/pupil_labs/neon_recording/stream/av_stream/base_av_stream.py @@ -82,7 +82,7 @@ def ts(self): def to_numpy(self): if self.audio_or_video == "video": - return np.array([frame.rgb for frame in self]) + return np.array([frame.bgr for frame in self]) elif self.audio_or_video == "audio": return np.array([frame.to_ndarray() for frame in self])