diff --git a/utils/datasets.py b/utils/datasets.py index 4641d3c7..abf95658 100755 --- a/utils/datasets.py +++ b/utils/datasets.py @@ -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