Skip to content

Instantly share code, notes, and snippets.

View arunponnusamy's full-sized avatar

Arun Ponnusamy arunponnusamy

View GitHub Profile
# 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',