ap = argparse.ArgumentParser() "\n"
ap.add_argument("-i", "--image", required = True, help = "path to input image.")
ap.add_argument("-y", "--yolo", required = True, help = "base path to YOLO directory")
ap.add_argument("-c", "--confidence", type = float, default=0.5, help = "minimum probability to filter weak detections")
ap.add_argument("-t", "--threshold", type = float, default=0.3, help = "threshold when applying non-maxima suppression")
args = vars(ap.parse_args())
But every time I run this I get an error saying: -
usage: ipykernel_launcher.py [-h] -i IMAGE -y YOLO [-c CONFIDENCE]
[-t THRESHOLD]
ipykernel_launcher.py: error: the following arguments are required: -i/--image, -y/--yolo
An exception has occurred, use %tb to see the full traceback.