I know VideoCaptureThreading being where it is right now is ugly. I'd like to just keep it like this, and restructure the files later, if that's okay.
This basically improves that blocking self.inputDevice.read() call which takes ~40 ms on my machine, to near 0 ms. In the end, the output is almost steady 30 FPS with this PR.
I know
VideoCaptureThreading
being where it is right now is ugly. I'd like to just keep it like this, and restructure the files later, if that's okay.This basically improves that blocking
self.inputDevice.read()
call which takes ~40 ms on my machine, to near 0 ms. In the end, the output is almost steady 30 FPS with this PR.