My friends and I made a project on face mask detection that alerts people if they are found not wearing a mask.
- Raspberry Pi captures the images on detection of some motion.
- At a particular time of the day the captured images are sent to an AWS S3 Bucket in zip format.
- After the uploading has been completed, the AWS EC2 instance boots up and performs the process of mask detection on the images present in the S3 bucket.
- If mask is not detected on a persons face, face recognition is performed on that person.
- This image is sent to the mail address of the recognized person as an attachment.
- A high definition web camera is required for capturing the images.
- Raspberry Pi 4, for more details please visit their official site.
- An AWS account, free tier will be sufficient for this project.
- The Windows operating system downloading the
Visual Studio Build Tools
are required, since we needcmake
for the process of face recognition. A Linux operating system does not require these. For more information regarding the installation on the Windows operating system refer to this video. - Python 3.8 and above.
- AWS CLI must be installed on the raspberry pi, for more information regarding the installation please go through this page.
- It is better to create a virtual environment.
- Raspberry Pi
- It contains the code that has to be present in the raspberry pi for capturing the images and uploading them to the AWS. Refer to the readme present in the Raspberry_Pi folder.
- AWS
- It contains the code that has to be present in the AWS instance for downloading the files and performing the processes of face mask detection, face recognition and sending mails. Refer to the readme present in the AWS folder.