You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/infer/text/README.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ Thus, online inference is more suitable for demonstration and to visually evalua
14
14
| Python | >=3.7 |
15
15
16
16
Supported platforms: Linux, MacOS, Windows (Not tested)
17
+
17
18
Supported devices: CPU, GPU, and Ascend.
18
19
19
20
Please clone MindOCR at first
@@ -173,6 +174,7 @@ python tools/infer/text/predict_system.py --image_dir {path_to_img or dir_to_img
173
174
--det_algorithm DB++ \
174
175
--rec_algorithm CRNN
175
176
```
177
+
> Note: set `--visualize_output True` if you want to visualize the detection and recognition results on the input image.
176
178
177
179
After running, the inference results will be saved in `{args.draw_img_save_dir}/system_results.txt`, where `--draw_img_save_dir` is the directory for saving results and is set to `./inference_results` by default. Here are some results for examples.
0 commit comments