From 61eceaec0137891482ebbe0d97c5c4ad01b1dac9 Mon Sep 17 00:00:00 2001 From: Sai Subhakar T <36569367+saimj7@users.noreply.github.com> Date: Tue, 4 May 2021 14:21:44 +0200 Subject: [PATCH] release func. --- mylib/thread.py | 3 +++ 1 file changed, 3 insertions(+) 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