Alina-chan/realtime-object-detection

error in argument

Opened this issue · 0 comments

i wanna ask for this error, what should i do??

usage: real_time_object_detection.py
[-h] -p PROTOTXT -m MODEL
[-c PROBABILITY]
real_time_object_detection.py: error:
the following arguments are required:
-p/--prototxt, -m/--model

the arguments:

construct the argument parser and parse the arguments

ap = argparse.ArgumentParser()
ap.add_argument("-p", "--prototxt", required = True, help = "path to Caffe 'deploy' prototxt file")
ap.add_argument("-m", "--model", required = True, help = "path to Caffe pre-trained model")
ap.add_argument("-c", "--probability", type = float, default = 0.2, help = "minimum probability to filter weak detections")
args = vars(ap.parse_args())