Openvino: How To Build Opencv With Inference Engine To Enable Loading Models From Model Optimizer
I installed OpenVINO and want to run the following code on windows 10. import numpy as np import cv2 import sys from get_face_id import face_id_getter from check import check fro
Solution 1:
For me, the solution was to remove the OpenCV Python libraries and install opencv-python-inference-engine
pip3 uninstall opencv-python
pip3 uninstall opencv-contrib-python
pip3 install opencv-python-inference-engine
Solution 2:
You should add OpenCV to your environment variables.
Open environment variables window: Type environment variables
in search box.
Edit Path
from System Variables
, insert OpenCV path as your installation path. In my case, I added and able to work with it.
C:\Program Files(x86)\IntelSWTools\openvino\opencv\bin
You also need to check for preferable backend and target to pick inference backend and target hardware.
see following API references:
Solution 3:
You can just use OpenCV from OpenVINO. It's already compiled with Intel's Inference Engine.
Post a Comment for "Openvino: How To Build Opencv With Inference Engine To Enable Loading Models From Model Optimizer"