/FaceDetection

Face Detection Algorithm for detecting human face from the image or video file using libraries like OpenCV, Tensorflow, MTCNN, DLIB,etc.

Primary LanguageJupyter NotebookMIT LicenseMIT

Face Detection

HAAR CASCADING

Setup & Pre-requisites
  1. OpenCV Library
  2. Download `haarcascade_frontalface_default.xml`.
  3. Change `PATH_TO_IMAGE` with image path which you want to test.
Result:

MTCNN

Setup & Pre-requisites
  1. OpenCV Library
  2. Run `!pip install mtcnn` on cmd.
  3. Change `PATH_TO_IMAGE` with image path which you want to test.
Result:

DLIB FRONTAL_FACE_DETECTION

Setup & Pre-requisites
  1. OpenCV Library
  2. Dlib python Library
  3. Download `mmod_human_face_detector.dat`
  4. Change `PATH_TO_IMAGE` with image path which you want to test.
Result:

DLIB CNN_FACE_DETECTION

Setup & Pre-requisites
  1. OpenCV Library
  2. Dlib python Library
  3. Change `PATH_TO_IMAGE` with image path which you want to test.
Result:

LBP CASCADING FACE DETECTION

Setup & Pre-requisites
  1. OpenCV Library
  2. Numpy Library
  3. Download `lbpcascade_frontalface.xml`
  4. Change `PATH_TO_IMAGE` with image path which you want to test.
Result:

DNN - RESNET

Setup & Pre-requisites
  1. OpenCV Library
  2. Numpy Library
  3. Download `Resnet_SSD_deploy.prototxt`
  4. Download `Res10_300x300_SSD_iter_140000.caffemodel`
  5. Change `PATH_TO_IMAGE` with image path which you want to test.
Result: