“ImportError: DLL load failed: The specified module could not be found” getting this error when doing object detection

和自甴很熟 提交于 2021-02-10 18:50:05

问题


from imageai.Detection import ObjectDetection

import os

execution_path = os.getcwd()

--------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 from imageai.Detection import ObjectDetection 2 import os 3 4 execution_path = os.getcwd()

~\Anaconda3\lib\site-packages\imageai\Detection__init__.py in () ----> 1 import cv2 2 3 from imageai.Detection.keras_retinanet.models.resnet import resnet50_retinanet 4 from imageai.Detection.keras_retinanet.utils.image import read_image_bgr, read_image_array, read_image_stream, preprocess_image, resize_image 5 from imageai.Detection.keras_retinanet.utils.visualization import draw_box, draw_caption

ImportError: DLL load failed: The specified module could not be found.


回答1:


Add your DLL location of python (C:\Program Files\Python35\DLLs) in Environment variables of Path.



来源:https://stackoverflow.com/questions/52362389/importerror-dll-load-failed-the-specified-module-could-not-be-found-getting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!