在Python中导入openvino时报错:from .ie_api import * ImportError: DLL load failed: 找不到指定的模块
- 我们使用OpenVINO进行模型部署的时候,可以使用c++,也可以使用Python。
- 使用Python时,可以通过OpenCV dnn模块调用OpenVINO(OpenCV版),也可以直接调用Inference Engine Python API函数来开发AI推理Python应用程序(OpenVINO版)。
- 在设置环境变量之后,需要对设置的环境进行测试,在cmd输入以下代码:
C:\Users\Administrator>conda activate tf_gpu
(tf_gpu) C:\Users\Administrator>python
Python 3.7.7 (default, May 6 2020, 11:45:54) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'4.1.2-openvino'
>>> from openvino.inference_engine import IECore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\IntelSWTools\openvino_2019.3.334\python\python3.6\openvino\inference_engine\__in