mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-12 05:50:49 +08:00
* 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:
13 files changed
+505
-223
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user