Found it quite difficult to understand the multi-eye example as I didn’t have any experience coding using threading.
I’m using a single camera to track objects, estimate velocity + heading and predict future location so needed a test application to grab photos to test other functions before integrating with the rest of the project.
I thought this code might help others understand Alex’s threading application. Let me know if there are any improvements that can be made as I am far from the adept programmer: I still don’t understand sections of the attached code as sections are copied from Alex’s sample code.
Hopefully it is helpful/useful for someone.