alex-ong / NESTrisOCR

OCR for statistics in NESTris
24 stars 7 forks source link

Make OpenCV capture non-blocking. Closes #24 #29

Closed blakegong closed 4 years ago

blakegong commented 4 years ago

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.

alex-ong commented 4 years ago

yes bois