COVID-19 currently requires an accurate count of people in a store to be kept, which is done through employees manually keeping a count as people enter and exit. This job is prone to human error along with the fact that there would be one more employee working near/in the building. In addition, people entering without wearing masks is another problem, since it increases the spread of COVID-19. Inside buildings, COVID-19 can spread more easily because of the close proximity of people. Without wearing masks inside, many people could get sick.

What it does

I created an automated people counting system with mask detection. If someone attempts to enter the building and is not wearing a mask, a pop up message will be displayed on a screen telling the individual that mask use is required. In addition, a red LED is lit up when the amount of people in a building exceeds the max capacity. When this LED is lit up, there is a message asking the individual to wait until space is available.

How I built it

Building Procedure (People Counting System) Cardboard box: 25cm x 30cm x 20cm Cut out two doorways: 11.5 cm x 7.5cm (each) (on same side) Mount break beam sensor pairs on each doorway Cut out holes in the back of the box for wires Connect a breadboard to the Raspberry Pi with connecting wires as shown in image. Connect a break beam sensor pair to the bread board as shown in the image. Repeat this process a second time for the other pair of sensors. Connect a breadboard to the Raspberry Pi with connecting wires as shown. Connect an LED to the bread board as shown in the image.

The software for the people counting system as well as the mask detection system is written in python, and the physical components function on breadboard connected to a raspberry pi 4. Flow charts for both programs will be shown in images.

Challenges I ran into

I had trouble finding a large dataset, so I resorted to combining multiple datasets for the mask on as well as mask off.

Accomplishments that I'm proud of

I am very proud that I got both systems to work properly, as well as exceed my original testing standards.

What I learned

I learned how to manage my time well while working on both components of this project. I learned a lot in the physical wiring aspect of the people counting system and working with the raspberry pi in general.

What's next for People Counting and Mask Detecting System Mitigating COVID19

In the future, I would like to test my mask detection system on various people, rather than myself. In addition, I would like to use stronger break beam sensors, and test using real people walking through them.

Built With

Share this project: