Imageai: Object Detection with 10 lines of code : I did everything as mentioned, but i get the following error. Value Error: Ensure you specified correct input image, input type, output type and/or output image path the input files are there in the same directory.. what am i missing here? Please find the code below : from imageai.Detection import ObjectDetection import os execution_path = os.getcwd() detector = ObjectDetection() detector.setModelTypeAsRetinaNet() detector.setModelPath( os.path.join(execution_path , "resnet50_coco_best_v2.0.1.h5")) detector.loadModel() detections = detector.detectObjectsFromImage(input_image=os.path.join(execution_path , "image.jpg"), output_image_path=os.path.join(execution_path , "imagenew.jpg")) for eachObject in detections: print(eachObject["name"] , " : " , eachObject["percentage_probability"] )
Most helpful comment
I did and l still get the same error