fix(rapidocr): fixed issue #394 (#411)

* chore(rapidocr): add model SHA256

* chore(rapidocr): add model SHA256

* docs: update online demo link

* chore: update model path

* chore: update files

* chore: update files

* chore: update files

* fix(rapidocr): fixed paramter of DownloadFile
This commit is contained in:
SWHL authored and GitHub committed 2025-04-25 20:39:38 +08:00
1 parent 6fce7c841c
commit fbaaaba486
13 files changed
+505 -223

No files matched your search

+1 -7
View File
@@ -16,7 +16,6 @@ sys.path.append(str(root_dir))
from rapidocr import LoadImageError, RapidOCR
from rapidocr.main import main
from rapidocr.utils.logger import Logger
from rapidocr.utils.utils import download_file
tests_dir = root_dir / "tests" / "test_files"
img_path = tests_dir / "ch_en_num.jpg"
@@ -179,16 +178,11 @@ def test_engine_torch():
def test_long_img(engine):
img_url = "https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/long.jpeg"
img_path = tests_dir / "long.jpeg"
download_file(img_url, img_path, logger)
result = engine(img_path)
result = engine(img_url)
assert result is not None
assert len(result.boxes) >= 53
img_path.unlink()
def test_mode_one_img(engine):
img_path = tests_dir / "issue_170.png"