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.52k stars 834 forks source link

Frame crash issue resolved #140

Closed ritikchinu closed 2 years ago

ritikchinu commented 2 years ago

Issue Number

ISSUE #135

Describe the changes you've made

The issue involved empty frame being captured by caffe based face detection algorithm when we approach close to the camera lens. I have added necessary conditional statement before pre-processing the facial frame to avoid the framework from crashing while executing pre-processing methods in empty frame.

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

NA

Additional context (OPTIONAL)

Test plan (OPTIONAL)

Checklist