mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-12 05:50:49 +08:00
chore: optimze char rec (#260)
* chore: format code * chore: format code * test: update unit tests for different platform * feat(rapidocr_onnxruntime): optimize code * feat(rapidocr_onnxruntime): add --return_word_box params of CLI * chore: update demo * feat(rapidocr_onnxruntime): update vis of return_word_box
This commit is contained in:
11 files changed
+364
-250
No files matched your search
@@ -3,6 +3,7 @@
|
||||
# @Contact: liekkaskono@163.com
|
||||
import importlib
|
||||
import sys
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import Optional, Union
|
||||
|
||||
@@ -53,3 +54,10 @@ def download_file(url: str, save_path: Union[str, Path]):
|
||||
|
||||
class DownloadModelError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
@dataclass
|
||||
class Platform:
|
||||
mac: str = "Darwin"
|
||||
windows: str = "Windows"
|
||||
linux: str = "Linux"
|
||||
Reference in new issue
Block a user