Face detection

Face detection algorithms comparison / Face detection tips, suggestions, and best practices

caption

  • OpenCV DNN
  • OpenCV Haarcascade
  • Detecting a face using Dlib
  • MTCNN
  • Facenet
  • OpenFace
  • The Viola-Jones Algorithm (2001)
    • Haar-like features (edge, line, four rectangle features)
    • Integral Image - compute sum once, then 4 point give the integral inside the given rectangle
    • Adaboost - build a strong classifier from weaker one, complementing each previous one

caption

# Yolo

caption

# Mediapipe

# dlib

  • HOG + Linear SVM: dlib.get_frontal_face_detector() - use less cpu but less reliable
  • MMOD CNN: dlib.cnn_face_detection_model_v1(modelPath) - would take advangate of gpu, more reliable

# Profile Face

caption

# Body detection

Written on August 19, 2020, Last update on June 8, 2024
computer-vision face opencv