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:
parent
8b72102583
commit
e49cbdb9c0
2 changed files with 4 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue