Продукт
Сценарии
Ресурсы
Файлы репозитория — Файлы
Как склонировать, отправить изменения и войти токеном или ключом — в документации
import os from imageai.Detection import ObjectDetection def image_detection() -> None: execution_path = os.getcwd() detector = ObjectDetection() detector.setModelTypeAsYOLOv3() detector.setModelPath(os.path.join(execution_path, "yolov3.pt")) detector.loadModel() detections = detector.detectObjectsFromImage( input_image=os.path.join(execution_path, "images/1.jpg"), output_image_path=os.path.join(execution_path, "image2new.jpg"), minimum_percentage_probability=30, ) for eachObject in detections: print(eachObject) def main() -> None: image_detection() if __name__ == "__main__": main()
Обязательные cookie нужны для входа и настроек. Аналитику — Яндекс.Метрику без записи сеансов — включаем только с твоего согласия; отказ ничего не ломает, выбор можно изменить в подвале сайта. Подробнее о cookie Согласие на аналитику