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:
SWHL authored and GitHub committed 2024-11-19 22:27:18 +08:00
1 parent 2ac3c35a36
commit df36c69820
11 files changed
+364 -250

No files matched your search

+8
View File
@@ -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"