简体   繁体   English

导入错误:DLL 加载失败:Uvedená procedura nebyla nalezena。 -propably ?找不到指定的程序。?

[英]ImportError: DLL load failed: Uvedená procedura nebyla nalezena. -propably ?The specified procedure could not be found.?

I wanted to see some total basics of python image recognition.我想了解一些 Python 图像识别的基本知识。 As I am tottaly newbie in this one I have found this guide: https://medium.com/@guymodscientist/image-prediction-with-10-lines-of-code-3266f4039c7a由于我完全是新手,因此我找到了本指南: https ://medium.com/@guymodscientist/image-prediction-with-10-lines-of-code-3266f4039c7a
Installed everthing described.安装了所描述的一切。 My thoughts are that the guide is a little bit outdated, but I have to take it...我的想法是指南有点过时了,但我必须接受它......
Ending with Second.py以 Second.py 结尾

from imageai.Prediction.Custom import CustomImagePrediction
import os
execution_path = os.getcwd()
prediction = CustomImagePrediction()
prediction.setModelTypeAsResNet()
prediction.setModelPath("idenprof_061-0.7933.h5")
prediction.setJsonPath("idenprof_model_class.json")
prediction.loadModel(num_objects=10)

predictions, probabilities = prediction.predictImage("image.jpg", result_count=3)

for eachPrediction, eachProbability in zip(predictions, probabilities):
    print(eachPrediction , " : " , eachProbability)

Running script with following result运行脚本,结果如​​下

Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> 
========================== RESTART: C:\aa\Second.py ==========================
Traceback (most recent call last):
  File "C:\aa\Second.py", line 1, in <module>
    from imageai.Prediction.Custom import CustomImagePrediction
  File "C:\Program Files\Python35\lib\site-packages\imageai\Prediction\__init__.py", line 2, in <module>
    from tensorflow.python.keras.preprocessing import image
  File "C:\Program Files\Python35\lib\site-packages\tensorflow\__init__.py", line 101, in <module>
    from tensorflow_core import *
  File "C:\Program Files\Python35\lib\site-packages\tensorflow_core\__init__.py", line 40, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "C:\Program Files\Python35\lib\site-packages\tensorflow\__init__.py", line 50, in __getattr__
    module = self._load()
  File "C:\Program Files\Python35\lib\site-packages\tensorflow\__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "C:\Program Files\Python35\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Program Files\Python35\lib\site-packages\tensorflow_core\python\__init__.py", line 50, in <module>
    from tensorflow.python import _pywrap_utils
ImportError: DLL load failed: Uvedená procedura nebyla nalezena. -propably ?The specified procedure could not be found.?
>>> 

Please advice to what is this error related or any tips how to make this work appreciate.请建议此错误与什么相关或任何提示如何使这项工作升值。 Or any up-to date guide would be also nice.或者任何最新的指南也很好。
I have found that it may be fixed by newer versions of python.我发现它可能会被较新版本的 python 修复。 3.5.1 mentioned in guide seems to me quite old.指南中提到的 3.5.1 在我看来已经很老了。 But which one should I use?但我应该使用哪一种?

for the theory click here , for an example on how to code one click here .对于理论点击这里,关于如何编码的一个例子点击这里 The error you get is related to a missing dll, so it's a missing library that you might need to install manually, or some library did not install correctly.您得到的错误与缺少 dll 相关,因此您可能需要手动安装缺少的库,或者某些库未正确安装。 I recommend getting a proper tutorial on how things work, you'll understand better how everything works.我建议获得有关事物如何工作的适当教程,您将更好地了解一切是如何工作的。 Your code is basically just loading a random model from the internet, and using an image on it.您的代码基本上只是从 Internet 加载一个随机模型,并在其上使用图像。 The links I gave you will help you understand it better, and you'll train one yourself.我给你的链接将帮助你更好地理解它,你将自己训练一个。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ImportError:DLL加载失败:找不到指定的过程。蟒蛇 - ImportError: DLL load failed: The specified procedure could not be found. Python 在Windows XP上安装mapnik失败,并显示消息“ImportError:DLL加载失败:找不到指定的过程。” - Installing mapnik on Windows XP fails with the message “ImportError: DLL load failed: The specified procedure could not be found.” 将Numpy导入Python:“ ImportError:DLL加载失败:找不到指定的过程。” - Importing Numpy to Python: “ImportError: DLL load failed: The specified procedure could not be found.” ImportError: DLL 加载失败:找不到指定的程序。 (thinkdsp 和 thinkplot) - ImportError: DLL load failed: The specified procedure could not be found. (thinkdsp and thinkplot) from matplotlib import ft2font: “ImportError: DLL load failed: The specified procedure could not be found.” - from matplotlib import ft2font: “ImportError: DLL load failed: The specified procedure could not be found.” 导入 pptx 时出错“导入错误:DLL 加载失败:找不到指定的过程。” - Error when Import pptx "ImportError: DLL load failed: The specified procedure could not be found." MeCab:“ ImportError:DLL加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” 导入错误:DLL 加载失败:找不到指定的模块。(Keras) - ImportError: DLL load failed: The specified module could not be found.(Keras) MeCab:“ImportError:DLL 加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” import matplotlib ImportError:DLL加载失败:找不到指定的过程 - import matplotlib ImportError: DLL load failed: The specified procedure could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM