Enable the --fps option on non Windows systems & set CAP_PROP_BUFFERSIZE to 1 when using OpenCV for live capture

This commit is contained in:
Autumn 2021-10-01 02:35:00 +10:00
parent 8b72102583
commit e49cbdb9c0
2 changed files with 4 additions and 4 deletions

View file

@ -111,6 +111,7 @@ class OpenCVReader(VideoReader):
super(OpenCVReader, self).__init__(capture, camera=True)
self.cap.set(3, width)
self.cap.set(4, height)
self.cap.set(38, 1)
def is_open(self):
return super(OpenCVReader, self).is_open()
def is_ready(self):