Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

refactor(openvino): fix openvion error typo error

SWHL402aadb12132
diff --git a/python/rapidocr/inference_engine/openvino/__init__.py b/python/rapidocr/inference_engine/openvino/__init__.py
index bd42998..131c642 100644
--- a/python/rapidocr/inference_engine/openvino/__init__.py
+++ b/python/rapidocr/inference_engine/openvino/__init__.py
@@ -1,4 +1,4 @@
# -*- encoding: utf-8 -*-
# @Author: SWHL
# @Contact: [email protected]
-from .main import OpenVINOInferSession, OpenVIONError
+from .main import OpenVINOError, OpenVINOInferSession
diff --git a/python/rapidocr/inference_engine/openvino/main.py b/python/rapidocr/inference_engine/openvino/main.py
index b9fe5cd..ad9bf47 100644
--- a/python/rapidocr/inference_engine/openvino/main.py
+++ b/python/rapidocr/inference_engine/openvino/main.py
@@ -62,11 +62,11 @@ class OpenVINOInferSession(InferSession):
return self.session.get_output_tensor().data
except Exception as e:
error_info = traceback.format_exc()
- raise OpenVIONError(error_info) from e
+ raise OpenVINOError(error_info) from e
def have_key(self, key: str = "character") -> bool:
return False
-class OpenVIONError(Exception):
+class OpenVINOError(Exception):
pass