Skip to content

Instantly share code, notes, and snippets.

Avatar

Arun Ponnusamy arunponnusamy

View GitHub Profile
View cnn_face_detection_dlib.py
# import required packages
import cv2
import dlib
import argparse
import time
# handle command line arguments
ap = argparse.ArgumentParser()
ap.add_argument('-i', '--image', required=True, help='path to image file')
ap.add_argument('-w', '--weights', default='./mmod_human_face_detector.dat',