Views
No views yet
| Handwritten Chinese | Handwritten English | Printed Chinese | Printed English | Traditional Chinese | Ancient Text | Japanese | General Scenario | Pinyin | Rotation | Distortion | Artistic Text | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.4166 | 0.4944 | 0.8605 | 0.8753 | 0.7199 | 0.5786 | 0.7577 | 0.5570 | 0.7703 | 0.7248 | 0.8089 | 0.5398 | 0.8015 |
1pip install -U paddleocr
2pip install -U onnxruntime-gpupaddleocr text_recognition -i ./demo.png --model_name PP-OCRv5_mobile_rec --engine onnxruntime1from paddleocr import TextRecognition
2
3model = TextRecognition(
4 model_name="PP-OCRv5_mobile_rec",
5 engine="onnxruntime",
6)
7output = model.predict("./demo.png", batch_size=1)
8for res in output:
9 res.print()
10 res.save_to_json(save_path="./output/res.json")