Answer the question
In order to leave comments, you need to log in
Does it give me an error when I run imageai?
According to the video tutorial by Gosha Dudar on imageai, I repeated the code, but it does not work and gives an error. I have installed all the necessary libraries from the documentation, but I still get an error. How it is possible to eliminate it?
from imageai.Detection import ObjectDetection
import os
exec_path = os.getcwd()
detector = ObjectDetection()
detector.setModelTypeAsRetinaNet()
detector.setModelPath(os.path.join(exec_path, "resnet50_coco_best_v2.1.0.h5"))
detector.loadModel()
list = detector.detectObjectsFromImage(
input_image=os.path.join(exec_path, "objects.jpg"),
output_image_path=os.path.join(exec_path, "new_objects.jpg"),
minimum_percentage_probability=90,
display_percentage_probability=True,
display_object_name=False
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question