Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2019-09-01 12:15:43 +02:00
parent 7ea0178a6c
commit c8c0660e6a
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ class LoadWebcam: # for inference
self.pipe = pipe
self.cap = cv2.VideoCapture(pipe) # video capture object
self.cap.set(cv2.CAP_PROP_BUFFERSIZE, 3) # set buffer size
def __iter__(self):
self.count = -1