Add attribute delegation to Cv2BufferedCap for improved access to VideoCapture methods
This commit is contained in:
4
main.py
4
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"""
|
||||
|
||||
Reference in New Issue
Block a user