Skip to content

Commit 402aadb

Browse files
committed
refactor(openvino): fix openvion error typo error
1 parent 4818b4f commit 402aadb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- encoding: utf-8 -*-
22
# @Author: SWHL
33
# @Contact: liekkaskono@163.com
4-
from .main import OpenVINOInferSession, OpenVIONError
4+
from .main import OpenVINOError, OpenVINOInferSession

python/rapidocr/inference_engine/openvino/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ def __call__(self, input_content: np.ndarray) -> np.ndarray:
6262
return self.session.get_output_tensor().data
6363
except Exception as e:
6464
error_info = traceback.format_exc()
65-
raise OpenVIONError(error_info) from e
65+
raise OpenVINOError(error_info) from e
6666

6767
def have_key(self, key: str = "character") -> bool:
6868
return False
6969

7070

71-
class OpenVIONError(Exception):
71+
class OpenVINOError(Exception):
7272
pass

0 commit comments

Comments
 (0)