A Simple Object Detection in python
- 
download models yolo.h5 - YOLOv3 
- 
Save the file in ./models
- 
Add to path 
model_path = "./models/yolo.h5"- Name the input/output file name
input_path = "./input/input.jpg"
output_path = "./output/output.jpg"- Run
Load Model & Detection
detector.setModelTypeAsYOLOv3()
detector.setModelPath(model_path)
detector.loadModel()
detection = detector.detectObjectsFromImage(input_image=input_path, output_image_path=output_path)Print percentage_probability & name of object
print(list(x["name"] for x in detection))
print(list(x["percentage_probability"] for x in detection))Intput
Output

