updates
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
7ea0178a6c
commit
c8c0660e6a
|
@ -137,6 +137,7 @@ class LoadWebcam: # for inference
|
||||||
|
|
||||||
self.pipe = pipe
|
self.pipe = pipe
|
||||||
self.cap = cv2.VideoCapture(pipe) # video capture object
|
self.cap = cv2.VideoCapture(pipe) # video capture object
|
||||||
|
self.cap.set(cv2.CAP_PROP_BUFFERSIZE, 3) # set buffer size
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
self.count = -1
|
self.count = -1
|
||||||
|
|
Loading…
Reference in New Issue