0

I am following this tutorial on facial recognition. It is teaching me how to create a dataset for facial recognition.

Thus far, I am importing my libraries; however, I get the following error:

usage: facial_recognition.py [-h] -c/ --cascade C/ __CASCADE -o OUTPUT facial_recognition.py: error: the following arguments are required: -c/ --cascade/-o/--output, -o/--output

This is the code that I used

import argparse
import imutils
import time
import cv2
import os
ap = argparse.ArgumentParser()
ap.add_argument("-c/ --cascade", "-o/--output", required=True, 
    help = "path to where the face cascade resides")
ap.add_argument("-o", "--output", required=True,
    help="path to output directory")
args = vars(ap.parse_args())
4

0 回答 0