From 2537a5ffe46d3db6141ee77218d612a9b2772166 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 26 Nov 2025 14:24:10 +0100 Subject: [PATCH] Add attribute delegation to Cv2BufferedCap for improved access to VideoCapture methods --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 4c1373d..5c39ec6 100644 --- a/main.py +++ b/main.py @@ -29,6 +29,10 @@ class Cv2BufferedCap: # Current position tracking self.current_frame = 0 + + def __getattr__(self, name): + """Delegate unknown attributes to underlying cv2.VideoCapture""" + return getattr(self.cap, name) def get_frame(self, frame_number): """Get frame at specific index - always accurate"""