Fixed issue #115

This commit is contained in:
SWHL committed 2023-08-29 10:43:38 +08:00
1 parent 8cfaa84a2a
commit 30535e88cd
8 files changed
+78 -19

No files matched your search

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