Visitor Counter
Cover
14 Steps
0 I Made It!
1

This project shows a simple setup which allows to monitor the number of visitors of a patient or a certain location. The project is based on a Raspberry Pi and the image processing library openCV.

2

Download the RaspberryPi Operation System Noobs from https://www.raspberrypi.org/downloads/noobs/ and copy the content of the zip file on the micro SD card.

3

To begin this project connect the Raspberry Pi to the screen, the keyboard, and the mouse.

4

Start the Raspberry Pi by plugging in the power cord. And follow the installation instructions. You can find some helpful information at https://www.raspberrypi.org/help/videos/.

5

Enable the camera by opening the terminal and typing "sudo raspi-config". Move down with the cursor keys, select the camera option, and enable the camera. Now shutdown the Raspberry Pi.

6
step

Plug in the camera as shown on the picture above. Make sure the Raspberry Pi is turned of.

7

Now start the Raspberry Pi again.

8

Open the browser and download the needed code from our git repository https://github.com/makerhealth/Physical-Computing-Face-Recognition/archive/master.zip and extract the zip file on your desktop.

9
step

Create a stand to hold the camera and Adjust it in the direction you want to monitor.

10
step

Open the terminal and type the following commands: "cd ~/Desktop/Physical-Computing-Face-Recognition-master" and then "python livedetection.py".

11
step

The last command you typed in runs the image recognition program. This will show you which image is currently processed and where it detected a face.

12

You will find a csv file in the same folder as the livedetection.py file. This csv file contains one row for each time a face has been detected. The row contains a time stamp and the number of face detected.

13

Final comment. In the current setup the program was developed so that no pictures of the visitors are taken to ensure the privacy of patients and their visitors.

14

Possible tweaks for this setup are: Creating a cron-job which starts the program if it is currently not running, Store images to ensure only people are visiting that are allowed to.