Identification of Face Mask With YOLOv4 Based on Outdoor Video


  • Mawaddah Harahap Universitas Prima Indonesia, Indonesia
  • Leonardo Kusuma Universitas Prima Indonesia, Indonesia
  • Melva Suryani Universitas Prima Indonesia
  • Candra Ebenezer Situmeang Universitas Prima Indonesia, Indonesia
  • Juniven Francisco Purba Universitas Prima Indonesia, Indonesia




The use of face masks in the current era is one of the special regulations in many countries including Indonesia to prevent the spread of coronavirus. However, not all people strongly agree to wear masks because they feel uncomfortable to wear even in crowded places require the use of masks such as shopping malls, hospitals, factories, stations and others by checking manually. Therefore, in the study proposed automatic detection of masks with YOLOv4 with the stage of data collection recording community activities in crowded places, labeling images of masks and non masks. The labelling results were conducted in training that resulted in 90.3% accuracy in the 2000 ierasi, the last of which was video testing in three different crowd locations: taxes, city parks and highways. Based on the test results, YOLOv4 can detect masks and non masks on videos with different obstruction conditions such as people wearing helmets, hand obstacles. However, for the detection of people with tissue obstruction conditions and improper position of wearing masks has not resulted in good detection.

GS Cited Analysis


Download data is not yet available.


I. Buciu, “Color quotient based mask detection,” 2020 14th Int. Symp. Electron. Telecommun. ISETC 2020 - Conf. Proc., pp. 12–15, 2020, doi: 10.1109/ISETC50328.2020.9301079.

C. Z. Basha, B. N. L. Pravallika, and E. B. Shankar, “An efficient face mask detector with pytorch and deep learning,” EAI Endorsed Trans. Pervasive Heal. Technol., vol. 7, no. 25, pp. 1–8, 2021, doi: 10.4108/eai.8-1-2021.167843.

W. Hariri, “Efficient Masked Face Recognition Method during the COVID-19 Pandemic,” 2021, doi: 10.21203/

Y. Li, K. Guo, Y. Lu, and L. Liu, “Cropping and attention based approach for masked face recognition,” Appl. Intell., vol. 51, no. 5, pp. 3012–3025, May 2021, doi: 10.1007/s10489-020-02100-9.

M. Loey, G. Manogaran, M. H. N. Taha, and N. E. M. Khalifa, “Fighting against COVID-19: A novel deep learning model based on YOLO-v2 with ResNet-50 for medical face mask detection,” Sustain. Cities Soc., vol. 65, p. 102600, Feb. 2021, doi: 10.1016/j.scs.2020.102600.

M. Jiang and X. Fan, “Retinamask: A Face Mask Detector,” arXiv, 2020.

A. Bochkovskiy, C. Y. Wang, and H. Y. M. Liao, “YOLOv4: Optimal Speed and Accuracy of Object Detection,” arXiv. 2020.

F. Boutros, N. Damer, F. Kirchbuchner, and A. Kuijper, “Unmasking Face Embeddings by Self-restrained Triplet Loss for Accurate Masked Face Recognition,” Mar. 2021, Accessed: Jun. 15, 2021. [Online]. Available:

M. S. Islam, E. Haque Moon, M. A. Shaikat, and M. Jahangir Alam, “A novel approach to detect face mask using CNN,” Proc. 3rd Int. Conf. Intell. Sustain. Syst. ICISS 2020, pp. 800–806, 2020, doi: 10.1109/ICISS49785.2020.9315927.


Crossmark Updates

How to Cite

Harahap, M., Kusuma, L. ., Suryani, M. . ., Situmeang, C. E. . ., & Purba, J. . F. . . (2021). Identification of Face Mask With YOLOv4 Based on Outdoor Video. Sinkron : Jurnal Dan Penelitian Teknik Informatika, 6(1), 127-134.

Most read articles by the same author(s)