This model is created to be used in an autonomous car to distribute masks in a closed environment.
- The Face and Mask Detection model.
- The navigation of the autonomous car depending on the angle and distance the car is from the person.
- The first step was to use cv2.CascadeClassifier to to detect faces.
- Then, if atleast one face was detected and had accuracy greater than 75%, we would begin extracting the range of interest (ROI), converting, resizing, and preprocessing the face image to be ready for the mask detection model.
- The image of the face is converted to a numpy array and given to the mask detection model.
- We used a pretrained-model to detect the masks.
- If no mask was detected then a function is called to calculate the distance and angle the car is from closest the person that it detected.
- Once the car has reached the person, it will wait 3 seconds for the person to take a mask.
- Then, the car will reverse and repeat the process all over again.