Пример #1
0
 def __init__(self, path="videos/video.mp4"):
     Stream.__init__(self)
     self.cap = cv2.VideoCapture(path)
Пример #2
0
 def __init__(self):
     Stream.__init__(self)
     self.cap = cv2.VideoCapture(0)