Inspiration

We set out to build a face scanner that could identify whether an individual was wearing a face mask, and determine if the face mask was being worn incorrectly.

What it does

The application is able to open the device's webcam, record the video, and run the recording through Google Cloud's video intelligence face scanner.

How we built it

CV2 was used to access the webcam and display it's capture in a window. Time was used to automatically end the recording after a specified time period. The video file was then saved to the device, and run through Google Cloud's Video Intelligence to return attribute confidence values.

Challenges we ran into

Due to time constraints and learning, the mask detection portion of our goal was not completed. Google Cloud video intelligence face scanning is still in beta and we were unable to figure out how to utilize the information we would receive from the scans.

Accomplishments that we're proud of

Learning python Connecting the webcam feed Successfully communicating with the Google Cloud API

What we learned

Python, API calling, CV2

What's next for Face Scanner

We plan on learning more about alternative methods of face scanning to potentially finish the goal of detecting face mask usage.

Built With

  • cv2
  • google-cloud-video-intelligence
  • io
  • os
  • python
  • time
  • webcam
Share this project:

Updates