Building a facial attendance system using python

in #hive-1896412 years ago

The facial attendance system is one of the recent projects I have worked on. This is built to eliminate the manual way of taking attendance in your class.

This was developed using Python. There are different libraries you need installed first before writing your codes. Among these are OpenCV and face recognition. We installed Python installation packages (Pip) in your command line or your editor terminal.
Let's begin writing our codes. We begin by importing our models.

p1.PNG

The code below sets up a video source input to recognize the face of a student. The face that is shown in the camera is compared; if it matches, the program continues its execution. Images of the students are stored in various variables and their encodings.

p2.PNG

A list of the face encodings of the various students and their names are stored in the variables know_face_encodings and known_faces_names, respectively.

p3.PNG

p4.PNG

p5.PNG

When a video source input is recognized, it compares the face shown in the camera with the various face encodings; if it matches the name of the student, the name of the student is deleted from the list, and the names of those not present are printed in the terminal. A csv file is also created to take the face shown name, date, and time it was captured.

Thank you for your time

Sort:  

@wemah
Coding is not that easy
Thanks for sharing

yeah but practice it everyday