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.744 | 0.777 | 0.905 | 0.910 | 0.823 | 0.581 | 0.727 | 0.721 | 0.575 | 0.647 | 0.827 | 0.525 | 0.770 |
1pip install -U paddleocr
2pip install -U onnxruntime-gpupaddleocr text_detection -i ./demo.png --model_name PP-OCRv5_mobile_det --engine onnxruntime1from paddleocr import TextDetection
2
3model = TextDetection(
4 model_name="PP-OCRv5_mobile_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")