Add attribute delegation to Cv2BufferedCap for improved access to VideoCapture methods

This commit is contained in:
2025-11-26 14:24:10 +01:00
parent c6b285ae18
commit 2537a5ffe4

View File

@@ -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"""