Mask Detection System Using Haar Cascade Algorithm in Facing the New Normal Era


Rudi Suhirja Jemakmun Jemakmun


The covid-19 outbreak originated from a cluster of human pneumonia cases in the Chinese city of Wuhan in late December 2019. Covid-19 has been an outbreak in Indonesia since March 2020. Not only in our country, but the spread of the covid-19 virus has also affected every country in the world. Therefore, currently, various places have implemented special rules to comply with health protocols. One of them is the 2020 governor's (pub) government, where all southern Sumatra must follow health protocols by wearing masks. This mask detection system program is a way to overcome public awareness, especially among students at Bina Darma University, that how important the use of masks is today. by utilizing artificial intelligence the author created a system to detect masks. In writing this program, the author used python and used the haar cascade algorithm. This haar cascade algorithm was the brainchild of Paul Viola and Michael Jones in 2001, they presented a paper called "Fast Object Detection Using Simple Enhancements". From experiments using the haar cascade method, the system can detect people who wear masks and do not wear masks. This test involves images and videos in real-time using bounding boxes.


[1] D. Hadi Prayitna and A. Djajadi, “Perancangan Prototype Deteksi Kelengkapan Atribut Siswa Berbasis Computer Vision,” J. Inov. Inform., vol. 7, no. 1, pp. 57–69, 2022, doi: 10.51170/jii.v7i1.235.
[2] M. Iqbal Firdaus, I. Innar Ridho, I. Kalimantan MAB Jl Adhyaksa No, and K. Tangi Banjarmasin, “Aplikasi Pendeteksi Wajah Menggunakan Metode Haar (Application of Face Detection Which Using Haar Method),” Media Sains, vol. 9, no. April, pp. 27–31, 2016.
[3] D. Yusyahnur, “Pengukuran Jarak Kendaraan Dengan Metode Haar Cascade Measurement Of Vehicle Distance With Haar Cascade Method Using Opencv,” vol. 9, no. 3, pp. 1145–1158, 2022.
[4] M. K. Scheuerman, A. Hanna, and E. Denton, “Do Datasets Have Politics? Disciplinary Values in Computer Vision Dataset Development,” Proc. ACM Human-Computer Interact., vol. 5, no. CSCW2, p. 2, 2021, doi: 10.1145/3476058.
[5] Nasri, “Kecerdasan buatan ( Artificial Intelligence ),” Artif. Intell., vol. 1, no. 2, pp. 1–10, 2014.
[6] S. Abidin et al., “Deteksi Wajah Menggunakan Metode Haar Cascade Classifier Berbasis Webcam Pada Matlab,” J. Teknol. Elekterika, vol. 2, 2018.
[7] I. Hartono, A. Noertjahyana, and L. W. Santoso, “Deteksi Masker Wajah dengan Metode Convolutional Neural Network,” J. Infra, vol. 10, no. 1, 2022.
[8] K. Menggunakan, K. Artifisial, A. Wikarta, M. K. Effendi, and A. S. Pramono, “Sistem Pendeteksi Masker pada Pengemudi,” vol. 7, no. 2, pp. 250–254, 2021.
[9] R. Prathivi and Y. Kurniawati, “Sistem Presensi Kelas Menggunakan Pengenalan Wajah Dengan Metode Haar Cascade Classifier,” Simetris J. Tek. Mesin, Elektro dan Ilmu Komput., vol. 11, no. 1, pp. 135–142, 2020, doi: 10.24176/simet.v11i1.3754.
[10] T. Karlita, N. A. Choirunisa, R. Asmara, and F. Setyorini, “Cat Breeds Classification Using Compound Model Scaling Convolutional Neural Networks.,” Proc. Int. Conf. Appl. Sci. Technol. Soc. Sci. 2021 (iCAST-SS 2021), vol. 647, pp. 909–914, 2022, doi: 10.2991/assehr.k.220301.150.
[11] D. R. H. putra C Rahmad, R A Asmara, H. D. and I Dharma, and Muhiqqin, “Comparison of Viola-Jones Haar Cascade Classifier and Histogram of Oriented Gradients (HOG) for face detection,” IOP, 2020, doi: 10.1088/1757-899X/732/1/012038.
[12] Y. Ferik, H. Octavianto, and D. H. Wahyu, “Deteksi Wajah Menggunakan Algoritma Viola-Jones”.
[13] A. Priadana and M. Habibi, “Face Detection using Haar Cascades to Filter Selfie Face Image on Instagram Deteksi Perubahan Citra Pada Video Menggunakan Illumination Invariant Change Detection View project Adri Priadana Face Detection using Haar Cascades to Filter Selfie Face Image on,” IEEE, 2019, doi: 10.1109/ICAIIT.2019.8834526.
[14] A. Singh and F. Furtado, “Modified Haar-Cascade Model for Face Detection Issues,” Int. J. Res. Ind. Eng., vol. 9, 2020, doi: 10.22105/riej.2020.226857.1129.
[15] N. M. Hussien, M. Ali, M. Al-Obaidi, and R. A. Abtan, “Comparison of Paul Viola-Michael Jones algorithm and HOG algorithm for Face Detection You may also like Semantic Gap Reduction From Mouth Feature Threshold Value Using Viola Jones Algorithm Aparna Joshi, Vinay Chavan and Parag Kaveri-Smart System for Dete,” ICCSSS 2020, 2021, doi: 10.1088/1757-899X/1084/1/012014.
[16] M. Syarif and Wijanarto, “Deteksi Kedipan Mata Dengan Haar Cascade Classifier Dan Contour Untuk Password Login,”, vol. 14, no. 4, pp. 242–249, 2015.
[17] R. Dharmadi, “CNN: Beyond Image Classification. Di era dimana Deep Learning sudah… | by Richard Dharmadi | Nodeflux | Medium,” 2018. (accessed Jul. 27, 2022).
[18] N. Heryana, “View of Penerapan Haar Cascade Classification Model Untuk Deteksi Wajah, Hidung, Mulut, dan Mata Menggunakan Algoritma Viola-Jones,” Jurnal Ilmu Komputer dan Teknologi Informasi, 2020. (accessed Jul. 28, 2022).
[19] A. Kumar, A. Kaur, M. Kumar, and · Munish Kumar, “Face detection techniques: a review,” Artif. Intell. Rev., 2018, doi: 10.1007/s10462-018-9650-2.