Fixed missing release method in video capture class

This commit is contained in:
boltgolt 2020-06-21 22:22:23 +02:00
parent fff9f3a4ab
commit 80433c70ff
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26

View file

@ -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