Art. 03 – Vol. 23 – No. 3 – 2013

Automatic Face Detection and Tracking Using OpenCV
Implementations of the Viola-Jones Method

Mihnea Horia Vrejoiu

Ştefan Alexandru Preda

Mădălina Zamfir
National Institute for Reasearch & Development in Informatics, ICI Bucharest

Abstract: An experimental system has been designed, implemented and tested for human face detection and tracking in still, respectively dinamic images – succesive video frames from video files (movies) or captured in real time (live) with a video or even a web camera – based on the Intel’s open source computer vision functions library, OpenCV. In this context, there have been imagined, designed and implemented a scenario, a method and an algorithm for detecting and tracking each static or moving face thus identified in the respective frames, by tagging (indexing) it and computing its future possible positions. There have been provided solutions for correctly tagging / indexing the faces in successive frames including those possible situations of ambiguity in their correct identification in the case of temporarily „loosing” them from some frames and further reappearence.

Keywords: Face Detection, Face Tracking, Computer Vision, Image Analysis, Haar Cascade, OpenCV.

View full article


  1. VREJOIU, M. H.; HOTĂRAN, A. M.; PREDA, Ş.; ZAMFIR, M.: Metode, tehnici şi algoritmi pentru localizarea şi urmărirea figurilor umane în imagini statice, respectiv dinamice. Studiu. Specificaţii de definire metode, tehnici şi algoritmi. Specificaţii de implementare metode, tehnici şi algoritmi. Sistem experimental – Raport de cercetare, etapa 1 (unică) a proiectului PN09230606, ICI Bucureşti, iulie 2013.
  2. HEWITT, R.: Seeing With OpenCV, Part 2: Finding Faces in Images, in SERVO Magazine, T & L Publications Inc., February 2007.
  3. VREJOIU, M. H.; HOTĂRAN, A. M.: Detectarea automată a feţelor umane. Metoda ViolaJones, în Revista Română de Informatică şi Automatică (RRIA), vol.23, nr.2, iunie 2013.
  4. VIOLA, P.; JONES, M.: Rapid Object Detection using a Boosted Cascade of Simple Features, in the Proceedings of the Conference on Computer Vision and Pattern Recognition (CVPR), 2001.
  5.  VIOLA, P.; JONES, M. J.: Robust Real-Time Face Detection, in the International Journal of Computer Vision (IJCV) 57(2), Kluwer Academic Publishers, 2004, pp. 137-154.
  6. JONES, M.; VIOLA, P.: Fast multi-view face detection, in Technical report, Mitsubishi Electric Research Laboratories, TR2003-96, 2003.
  7. LIENHART, R.; MAYDT, J.: An extended set of Haar-like features for rapid object detection, in Proc. of ICIP, 2002.

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