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.803 | 0.841 | 0.945 | 0.917 | 0.815 | 0.676 | 0.772 | 0.797 | 0.671 | 0.8 | 0.876 | 0.673 | 0.827 |
1pip install -U paddleocr
2pip install -U onnxruntime-gpupaddleocr text_detection -i ./demo.png --model_name PP-OCRv5_server_det --engine onnxruntime1from paddleocr import TextDetection
2
3model = TextDetection(
4 model_name="PP-OCRv5_server_det",
5 engine="onnxruntime",
6)
7output = model.predict("./demo.png", batch_size=1)
8for res in output:
9 res.print()
10 res.save_to_img(save_path="./output/")
11 res.save_to_json(save_path="./output/res.json")