from future import print_function
from facedetector import FaceDetector
import argparse
import cv2
import os
i = 0
ap = argparse.ArgumentParser()
“”“ap.add_argument(”-f", “–face”, required=True,
help=“path to where the face cascade resides”)"""
“”“ap.add_argument(”-i","–image",required=True,
help=“path to where the image file resides”)"""
args =vars(ap.parse_args())
“”“image =cv2.imread(args[“image”])”""
#fd = FaceDetector(args[“face”])
path = ‘D:/Big semester/project/Computer vision/face_and_car/jpg’
path1 = ‘D:/Big semester/project/Computer vision/face_and_car/model’
for lists1 in os.listdir(path1):
for lists in os.listdir(path):
if lists1 == “oneface.xml” :
su_path1 = os.path.join(path1, lists1)
fd = FaceDetector(su_path1)
su_pat