Attendance System by Face Recognition

by M7mdhz94 in Circuits > Raspberry Pi

1513 Views, 5 Favorites, 0 Comments

Attendance System by Face Recognition

صورة1.jpg

introduction:

In the context of technology, we live in a great scientific time that requires us to use technological tools and means from a scientific point of view to achieve the greatest possible benefit. The feature of facial recognition is considered one of the modern sciences that we will benefit from mainly in our modest project.

Project Idea:

Using a facial recognition camera, powered by Raspberry Pi4, and linking it to a database to prove attendance and absence using Python programming.

Attendance system:

Attendance system based on the algorithms of the front face by analyzing the saved and captured images by the camera and comparing them and showing the result and saving it in a database to prove attendance and departure


Supplies

Raspberry Pi 4

Two HD Microsoft cameras

Touch screen display for Raspberry 7inch

Two speakers

Two Push buttons

One Speakers power supply(1A)

One Raspberry power supply (3A)

Computer mouse

One Box

Two Camera installation base

Step 1: Gathering Supplies

صورة3.jpg
صورة4.jpg
صورة5.png
صورة6.jpg
صورة7.jpg
صورة1.png
صورة8.jpg
صورة9.jpg

1-Raspberry Pi 4

https://www.amazon.com/dp/B07TC2BK1X/ref=twister_B...

2-Two HD Microsoft cameras

https://www.amazon.com/Microsoft-T3H-00013-LifeCam...

3-Touch screen display for Raspberry 7inch

https://ar.banggood.com/Raspberry-Pi-4B-LCD-Capaci...

4-Two speakers

we bought it from local store

5-Two Push buttons

we bought it from local store

6-One Speakers power supply(1A)

we bought it from local store

7-One Raspberry power supply (3A)

we bought it from local store

8-Computer mouse

we bought it from local store

9-Box

we went to a local store to make it

10-Two Camera installation

we went to a local store to make it

Step 2 Gather Information on Programming and Library Used in the Project

صورة10.png
صورة11.png

first:

we upgrade the system to python 3.7

second:

We used the opencv2 library in programming and the code was downloaded successfully without any problem

The process of downloading OpenCV2 took about two days. At the beginning, we downloaded the library then we update it . it took us from the morning to the night to get updated

After that, we downloaded the second command, then we added the download command from the source, in the seventh command it took time until the next day we found it had been downloaded and then we added eight steps that took about an hour and the download finished.

http://mitchtech.net/raspberry-pi-opencv

Step 3: DataSet

صورة12.png
صورة13.png

Dataset: this code when we run it , we need to enter user id number after entering the id number it will start taking pictures and save it in the file named dataset , you can chose the number of pictures taken and the frame size

the number of pictures taken in the code is 30

the fame size is 1.3

https://iotdesignpro.com/projects/face-recognition...

Step 4: Algorithms

صورة14.png
صورة15.png
صورة16.png
صورة17.png

this code transfer the pictures that has been saved in the dataset file to algorithms so that the system can identifies the data.

https://iotdesignpro.com/projects/face-recognition...

Step 5:Face Recognition

صورة18.png
صورة2.jpg
Test Face Recognition
WhatsApp Image 2021-04-09 at 1.30.51 PM.jpeg
صورة19.png
صورة20.png

We added the facial recognition code. It is a code that recognizes the front face by comparing the images saved in the data set file and the currently captured images, and the process is done through the image conversion code into the algorithm's measurements and showing the saved name in case of finding a match. if it didn't find a match it will say unknown.

Note:

In the code we can change the id number to the real names of the person but the name need to be connected to the id number in the dataset

example:

in the code of the dataset we will enter user_1 but in the face recognition code we delete id_1 and wrote Mohammad to show it on the frame .

extra note:

We can adjust the sensitivity of the camera and how many time checking.

https://iotdesignpro.com/projects/face-recognition...

Step 6: Text to Speech

test of text to speech
صورة21.jpg
WhatsApp Image 2021-03-11 at 12.17.06 PM.jpeg
WhatsApp Image 2021-03-11 at 12.17.06 PM (1).jpeg

here we add two libraries and they are (pyttsx3&espeak).We add text to speech to say the names.

we had some problems in the library of speck but the project supervisor helped us with it

Downloads

Step 7: Adding a Second Camera and the Text to Speech

WhatsApp Image 2021-03-24 at 11.23.19 PM.jpeg
WhatsApp Image 2021-04-09 at 2.23.22 PM.jpeg
adding a second camera and the text to speech
صورة29.png

in this step we add the codes of the second camera and the text to speech and pushbuttons

Step 8:Adding the Codes and the Database

WhatsApp Image 2021-04-09 at 3.01.28 PM.jpeg
WhatsApp Image 2021-04-09 at 2.18.57 PM.jpeg
WhatsApp Image 2021-04-09 at 2.19.22 PM.jpeg
Face Recognition System as an Attendance and Leaving Registration Tool

we add CSV library for the database and its run with the LibreOffice

and this is the final project video

Downloads

Thanks to Dr.Jabber

نشكر الله ثم الدكتور جابر على دعمه ورعايته لهذا المشروع

واالله ولي التوفيق