This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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', |