chandrikadeb7 / Face-Mask-Detection

Face Mask Detection system based on computer vision and deep learning using OpenCV and Tensorflow/Keras
https://www.youtube.com/watch?v=AAkNyZlUae0
MIT License
1.54k stars 838 forks source link

Delay and generation of multiple box when mask detection process is used in a system with thread process #136

Open Mikaelluc opened 3 years ago

Mikaelluc commented 3 years ago

I'm writing a system to manage multiple cameras on a screen and process each frame detecting missing masks. For that, I use the face detection code from @chandrikadeb7 processing each camera in separated threads. But, when I access the class to make the detections at some point receive an empty frame and crash the process. I put a try-except, as in the first image below, to not crash the whole process and after that, a bunch of random boxes is drawn in the frame, as you can see in the second image below. If someone could help me I'll thank you a lot.

image

image

github-actions[bot] commented 3 years ago

Hello @Mikaelluc, Thank you for generating an issue to this project! Please wait while we get back to you.