mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-13 22:40:53 +08:00
Optim code.
This commit is contained in:
1 parent
482319fb7d
commit
d9c17f3dab
30 files changed
+204
-95
No files matched your search
@@ -12,9 +12,10 @@ class BaseModule(object):
|
||||
def __init__(self, package_name: str = 'rapidocr_onnxruntime'):
|
||||
self.package_name = package_name
|
||||
self.root_dir = Path(__file__).resolve().parent.parent
|
||||
self.package_dir = self.root_dir / self.package_name
|
||||
|
||||
sys.path.append(str(self.root_dir))
|
||||
sys.path.append(str(self.root_dir / self.package_name))
|
||||
sys.path.append(str(self.package_dir))
|
||||
|
||||
def init_module(self, module_name: str, class_name: str = None):
|
||||
if class_name is None:
|
||||
|
||||
Reference in new issue
Block a user