I am new to multithreading/processing. I have created a multithreaded application in Python3.
I realised that the Main Thread is running 3~4 times on the same image frame. How should I make it such that the Main Thread processing function only runs on new image frames that come from the USB camera? Which methods/objects should I use to enable this?
There are a few ways of doing this:
Both these ideas are covered very well here.