We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0debb66 commit 4c39ce9Copy full SHA for 4c39ce9
python/rapidocr/inference_engine/openvino.py
@@ -8,7 +8,10 @@
8
9
import numpy as np
10
from omegaconf import DictConfig
11
-from openvino.runtime import Core
+try:
12
+ from openvino import Core
13
+except ImportError: # fallback for older OpenVINO versions
14
+ from openvino.runtime import Core
15
16
from ..utils.download_file import DownloadFile, DownloadFileInput
17
from ..utils.log import logger
0 commit comments