Fixed missing release method in video capture class
This commit is contained in:
parent
fff9f3a4ab
commit
80433c70ff
1 changed files with 7 additions and 0 deletions
|
|
@ -54,6 +54,13 @@ class VideoCapture:
|
|||
if self is not None:
|
||||
self.internal.release()
|
||||
|
||||
def release(self):
|
||||
"""
|
||||
Release cameras
|
||||
"""
|
||||
if self is not None:
|
||||
self.internal.release()
|
||||
|
||||
def read_frame(self):
|
||||
"""
|
||||
Reads a frame, returns the frame and an attempted grayscale conversion of
|
||||
|
|
|
|||
Loading…
Reference in a new issue