Application of Region of Interest (ROI) in Student Attendance Detection System in Classroom
DOI:
https://doi.org/10.62123/enigma.v3i1.107Keywords:
Attendance Detection, People Counting, ROI, Image Processing, HOG, RSM, Haar Cascade, Monitoring SystemAbstract
Efficient classroom management is a crucial requirement in academic environments such as the Faculty of Computer Science and Information Technology to increase productivity. This study aims to design and evaluate a real-time presence detection and counting system by implementing the Region of Interest (ROI) method to improve computational efficiency and accuracy. This methodology involves the use of a Logitech C270 HD webcam, with a static ROI set at 90% of the central video frame to focus the analysis. Person detection and counting are performed using a combination of Histogram of Oriented Gradients (HOG) for the body and Haar Cascade for the face. Time series reasoning with a minimum duration of 60 seconds and a grace period of 5 seconds is implemented to validate presence and stabilize the room status, with system performance evaluated using Precision and Recall metrics. The results show that the system successfully displays the status and number of people in the room very well, but the evaluation shows a Recall value of 1.00, which means the system detects every actual human presence. However, this system has significant accuracy issues, indicated by a low Precision of 0.04 and a high number of False Positives of 710. In conclusion, although the ROI application successfully improves the computational load and the temporal logic stabilizes the output, the HOG and Haar Cascade models are inadequate to handle visual noise in the ROI, resulting in low Precision and indicating the need for more sophisticated detection models.
Downloads
References
[1] D. Fuentes et al., “IndoorCare: Low-Cost Elderly Activity Monitoring System through Image Processing,” Sensors, vol. 21, no. 18, p. 6051, Sep. 2021, doi: 10.3390/s21186051.
[2] M. Z. Li, G. Liu, Z. Mao, Q. S. Yang, and J. W. Gu, “Two-dimensional motion estimation using phase-based image processing with Riesz transform,” Mech Syst Signal Process, vol. 188, p. 110044, Apr. 2023, doi: 10.1016/j.ymssp.2022.110044.
[3] P. Wu et al., “Next‐generation machine vision systems incorporating two‐dimensional materials: progress and perspectives,” InfoMat, vol. 4, no. 1, p. e12275, 2022.
[4] H. P. Aguero, “Review of the Current Technologies and Applications of Digital Image Processing,” Journal of Biomedical and Sustainable Healthcare Applications, vol. 2, no. 2, pp. 148–158, 2022.
[5] S. Sumijan and P. A. W. Purnama, “Teori dan Aplikasi Pengolahan Citra Digital Penerapan dalam Bidang Citra Medis,” 2021, PENERBIT INSAN CENDEKIA MANDIRI.
[6] M. S. Hossain et al., “Region of interest (ROI) selection using vision transformer for automatic analysis using whole slide images,” Sci Rep, vol. 13, no. 1, p. 11314, Jul. 2023, doi: 10.1038/s41598-023-38109-6.
[7] Z. Tian, X. Si, Y. Zheng, Z. Chen, and X. Li, “Multi-step medical image segmentation based on reinforcement learning,” J Ambient Intell Humaniz Comput, vol. 13, no. 11, pp. 5011–5022, 2022.
[8] D. Widiyanto, “Tinjauan Algoritma RoI (Region of Interest) Dengan Metode Pengambangan Otsu Dan Klasterisasi K-Mean; Hasil Dan Tantangannya,” Informatik: Jurnal Ilmu Komputer, vol. 16, no. 2, pp. 75–86, 2020.
[9] C.-H. Choi, J. Kim, J. Hyun, Y. Kim, and B. Moon, “Face detection using haar cascade classifiers based on vertical component calibration,” Human-centric Computing and Information Sciences, vol. 12, no. 11, pp. 1–17, 2022.
[10] M. Aishwarya and N. Neelima, “The analogy of HAAR cascade and HOG approaches for facial emotion recognition,” in Information and Communication Technology for Competitive Strategies (ICTCS 2020) Intelligent Strategies for ICT, Springer, 2021, pp. 699–707.
[11] M. Chandrakala and P. D. Devi, “Two-stage classifier for face recognition using HOG features,” Mater Today Proc, vol. 47, pp. 5771–5775, 2021.
[12] D. R. Rochmawati, “DETEKSI WAJAH DENGAN METODE HAAR CASCADE MENGGUNAKAN OPENCV (FACE DETECTION WITH HAAR CASCADE METHOD USING OPENCV),” Jurnal Teknologi Komputer dan Informatika, vol. 3, no. 1, 2024.
[13] F. T. Anggraeny, B. Rahmat, and S. P. Pratama, “Deteksi Ikan Dengan Menggunakan Algoritma Histogram of Oriented Gradients,” Inform. Mulawarman J. Ilm. Ilmu Komput, vol. 15, no. 2, p. 114, 2020.
[14] I. K. S. Buana, “Aplikasi untuk pengoprasian komputer dengan mendeteksi gerakan menggunakan opencv python,” 2018.
[15] M. Ahmed, M. D. Salman, R. Adel, Z. Alsharida, and M. Hammood, “An intelligent attendance system based on convolutional neural networks for real-time student face identifications,” Journal of Engineering Science and Technology, vol. 17, no. 5, pp. 3326–3341, 2022.
[16] N. M. Alruwais and M. Zakariah, “Student recognition and activity monitoring in e-classes using deep learning in higher education,” IEEE access, vol. 12, pp. 66110–66128, 2024.
[17] D. B. Hidayat, B. M. Nugraha, D. A. D. Bagaskara, D. P. Widyadhana, D. Purwitasari, and I. K. E. Purnama, “A Classroom Usage Monitoring System with Image Detection for Student Attendance,” in 2024 2nd International Conference on Software Engineering and Information Technology (ICoSEIT), IEEE, 2024, pp. 7–12.
[18] N. J. Wala’a and J. M. Rana, “A survey on segmentation techniques for image processing,” Iraqi Journal for Electrical and Electronic Engineering, vol. 17, no. 2, pp. 73–93, 2021.
[19] R. F. Falah, O. D. Nurhayati, and K. T. Martono, “Aplikasi pendeteksi kualitas daging menggunakan segmentasi region of interest berbasis mobile,” Jurnal Teknologi dan Sistem Komputer, vol. 4, no. 2, pp. 333–343, 2016.
[20] T. Long et al., “A generic pixel pitch calibration method for fundus camera via automated ROI extraction,” Sensors, vol. 22, no. 21, p. 8565, 2022.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Setyo Fahmi Noor Faizi, Al-Khowarizmi

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.







