Summary
Use the “IECore.read_network” method to read a network from IR.
Description
- Installed opencv-python-headless and openvino package.
- Imported OpenCV* with Python*.
- Encountered error when reading a network from IR using cv2.dnn.readNet():
cv2.error: Build OpenCV with Inference Engine to enable loading models from Model Optimizer. in function 'readFromModelOptimizer'
Resolution
Use ie.read_network() to read a network from IR:
from openvino.inference_engine import IECore
ie = IECore()
net = ie.read_network(“xml_file”, “bin_file”)