Main Article Content


Face detection applications on digital images are very necessary in the process of face recognizing. This application is widely used in various disciplines, one of them is computer vision such as biometric recognition systems, search systems, and security systems. Computer vision is a combination of artificial intelligence and machine learning. It can gain informations from image and video by using computer algorithms. Many previous studies have developed face detection applications with various algorithms with certain programming languages. The detection of an object is the most important part in computer vision. Determining an accurate face location is still a challenging task for researchers. The location of the face is the main step in computer vision to find the face part in the input image. Open Source Computer Vision Library (OpenCV) is software that allows open-source library containing supporting object detection that is easily accessed into the Java programming language. Haar cascade classifier is one of the algorithms used for object detection. This algorithm can convert an object quickly by taking the number of images in a square shape on an image. In this study, discussing the application of face detection in digital images using the Haar Cascade Classifier and the transformation of images into gray / grayscale images using the OpenCV library. The results in this study have 100% accuracy in input images that have objects in the frontal position.


Deteksi Wajah, Haar Cascade Classifier, Komputer Visi, OpenCV Computer Vision Face Detection Haar Cascade Classifier OpenCV

Article Details

How to Cite
Yulina, S. (2021). Implementation of Haar Cascade Classifier for Face Detection and Grayscale Image Transformation Using OpenCV. Jurnal Komputer Terapan , 7(1), 100–109.


  1. G. Chern, G. Paul, and S. Jared, “Face Detection,” 2003. [Online]. Available:
  2. W. Lu and S. Sun, “Face Detection in Color Images,” 2003. [Online]. Available:
  3. S. Leahy, “Face Detection on Similar Color Photographs,” 2003. [Online]. Available:
  4. H. Jiang and E. Learned-Miller, “Face Detection with the Faster R-CNN,” in Proceedings - 12th IEEE International Conference on Automatic Face and Gesture Recognition, FG 2017 - 1st International Workshop on Adaptive Shot Learning for Gesture Understanding and Production, ASL4GUP 2017, Biometrics in the Wild, Bwild 2017, Heteroge, 2017, doi: 10.1109/FG.2017.82.
  5. R. Padilla, C. C. Filho, and M. Costa, “Evaluation of haar cascade classifiers designed for face detection,” J. WASET, 2012.
  6. P. Viola and M. Jones, “Rapid object detection using a boosted cascade of simple features,” in Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, 2001, doi: 10.1109/cvpr.2001.990517.
  7. C. HaiYan and L. JunHong, “The Image Process Techonlogies in Face Recognition,” in The 2nd International Conference on Information Science and Engineering, Hangzhou, 2010, pp. 4151-4154, 2010.
  8. “Face Detection using Haar Cascades.” [Online]. Available:
  9. N. R. Syambas and U. H. Purwanto, “Image processing and face detection analysis on face verification based on the age stages,” in 2012 7th International Conference on Telecommunication Systems, Services, and Applications, TSSA 2012, 2012, doi: 10.1109/TSSA.2012.6366070.
  10. F. Roman, “Digital Image Processing Techniques for Face Recognition,” 2013. [Online]. Available: