realtime-object-detection icon indicating copy to clipboard operation
realtime-object-detection copied to clipboard

error in argument

Open agripparuth opened this issue 4 years ago • 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())

agripparuth avatar May 27 '20 17:05 agripparuth