Skip to content

Commit

Permalink
🧪 Add tests for text detection
Browse files Browse the repository at this point in the history
  • Loading branch information
arxyzan committed Jul 5, 2024
1 parent cfcfd75 commit 2bdf213
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added tests/samples/text_detection_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions tests/test_models_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
"output_type_within_batch": dict,
"required_output_keys": {"text", "score"}
},
"text_detection": {
"path": "hezarai/CRAFT",
"inputs": {"type": "file", "value": "samples/text_detection_example.png"},
"predict_kwargs": {},
"output_type_within_batch": dict,
"required_output_keys": {"boxes"}
},
"ocr": {
"path": "hezarai/crnn-fa-printed-96-long",
"inputs": {"type": "file", "value": "samples/ocr_example.jpg"},
Expand Down

0 comments on commit 2bdf213

Please sign in to comment.