A Secure Attendance System using Raspberry Pi Face Recognition

Main Article Content

Rhouma Bin Hamed
Tarek Fatnassi


Machine learning, SVM, Histogram of Oriented Gradients (HOG), Haar Cascade, Raspberry Pi


This study aims to develop a machine-learning-based attendance management system using face recognition and Raspberry Pi. The proposed system is composed of two main subsystems. The first is a Raspberry Pi, to be installed in each class, and the second is a web application fed by data from the Raspberry Pi. To take attendance, an instructor commands a Raspberry Pi camera through a web-based subsystem. Then, the camera takes a picture of the whole class and detects faces using trained Haar Cascades. It sends back a file with the class picture and Cartesian coordinates of the detected faces. The web application parses the file, looking for the coordinates of faces. For each Region of Interest, it uses the Support Vector Machine algorithm to recognize faces based on their HOG (Histogram of Oriented Gradients) features. The recognizer uses a pre-built dataset of that particular class containing the students’ personal photos, names and ID numbers. Features of each face were extracted using HOG and trained to construct the model over a given class of students. Once every detected face is recognized, the application generates a report for the instructor showing the list of students’ names and attendance status.


Download data is not yet available.
Abstract 129 | 530-PDF-v10n2pp62-75 Downloads 7


Amritha & Sudhakar (2019). Face Recognition based Attendance System using Machine Learning. International Journal of Engineering Development and Research, 7(3), 541–549.
Dalal, N., & Triggs, B. (2005). Histograms of Oriented Gradients for Human Detection. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), 886—893. https://doi.org/10.1109/CVPR.2005.177
Evanjalin, A. B., Christy, D., Karthika, N., & Reshma, R. S. (2021). Face Recognition System Attendance System using Raspberry Pi. Irish Interdisciplinary Journal of Science & Research, 5(2), 84–91.
Fradkin, D., & Muchnik, I. (2006). Support Vector Machines for Classification. DIMACS Series in Discrete Mathematics and Theoretical Computer Science. 70, 13–20.
Kamalahasan, M., Gayathri, S., Swapna, B., Hemasundari, H., Apoorva, K., Wasim Akthar, J., Sudharsan, R., Saritha, V., & Nithin Kumar, N. (2020). AI Powered Face Recognition based Attendance Marking System. Journal of Advanced Research in Dynamical and Control Systems, 12(04), 1607–1611. https://doi.org/10.5373/JARDCS/V12SP4/20201640
Kowsalya, P. K., Pavithra, J., Sowmiya, G., & Shankar, C. K. (2019). Attendance Monitoring System Using Face Detection & Face Recognition. International Research Journal of Engineering and Technology (IRJET), 6(3), 6629–6632.
Qian, J., Yang, J., Xu, Y., Xie, J., Lai, Z., & Zhang, B. (2020). Image decomposition based matrix regression with applications to robust face recognition. Pattern Recognition, 102, 107204. https://doi.org/10.1016/j.patcog.2020.107204
Qutbuddin, S., & Larik, S. (2021). Face Recognition for Automated Attendance using HOG & Machine Learning. Conference on Face Recognition using HOG model. Karachi, Pakistan.
Rosebrock, A. (2021). Histogram of Oriented Gradients and Object Detection. PyImageSearch. Available at https://pyimagesearch.com/2014/11/10/histogram-oriented-gradients-object-detection/
Smitha, Hegde, P. S., & Afshin. (2020). Face Recognition based Attendance Management System. International Journal of Engineering Research, 9(5), 1190–1192. http://dx.doi.org/10.17577/IJERTV9IS050861
Thaware, R. (2018). Real-Time Face Detection and Recognition with SVM and HOG Features. [online] EEWeb. Available at https://www.eeweb.com/real-time-face-detection-and-recognition-with-svm-and-hog-features
Vapnik, V. N. (1998). Statistical Learning Theory. Wiley-Interscience, New York.