release func.

This commit is contained in:
Sai Subhakar T 2021-05-04 14:21:44 +02:00 committed by GitHub
parent 1b0c8cdbb3
commit 61eceaec01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,3 +26,6 @@ class ThreadingClass:
def read(self): def read(self):
return self.q.get() # fetch frames from the queue one by one return self.q.get() # fetch frames from the queue one by one
def release(self):
return self.cap.release() # release the hw resource