mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-13 22:40:53 +08:00
Fixed issue #115
This commit is contained in:
1 parent
8cfaa84a2a
commit
30535e88cd
8 files changed
+78
-19
No files matched your search
@@ -95,3 +95,11 @@ def test_input_rec_parameters():
|
||||
result, _ = rapid_ocr(image_path)
|
||||
raise FileNotFoundError()
|
||||
assert exc_info.type is FileNotFoundError
|
||||
|
||||
|
||||
def test_input_two_ndim():
|
||||
img_npy = tests_dir / "two_dim_image.npy"
|
||||
image_array = np.load(str(img_npy))
|
||||
result, _ = rapid_ocr(image_array)
|
||||
|
||||
assert len(result) == 87
|
||||
@@ -95,3 +95,11 @@ def test_input_rec_parameters():
|
||||
result, _ = rapid_ocr(image_path)
|
||||
raise FileNotFoundError()
|
||||
assert exc_info.type is FileNotFoundError
|
||||
|
||||
|
||||
def test_input_two_ndim():
|
||||
img_npy = tests_dir / "two_dim_image.npy"
|
||||
image_array = np.load(str(img_npy))
|
||||
result, _ = rapid_ocr(image_array)
|
||||
|
||||
assert len(result) == 87
|
||||
Binary file not shown.
Reference in new issue
Block a user