diff --git a/mylib/thread.py b/mylib/thread.py index cb3af34..f62a63b 100644 --- a/mylib/thread.py +++ b/mylib/thread.py @@ -26,3 +26,6 @@ class ThreadingClass: def read(self): return self.q.get() # fetch frames from the queue one by one + + def release(self): + return self.cap.release() # release the hw resource