Views
No views yet
| Model | Recognition Avg Accuracy(%) | Model Storage Size (M) | Introduction |
|---|---|---|---|
| PP-LCNet_x1_0_textline_ori | 98.85 | 0.96 | Text line classification model based on PP-LCNet_x0_25, with two classes: 0 degrees and 180 degrees |
1pip install -U paddleocr
2pip install -U onnxruntime-gpupaddleocr textline_orientation_classification -i ./demo.jpg --model_name PP-LCNet_x1_0_textline_ori --engine onnxruntime1from paddleocr import TextLineOrientationClassification
2
3model = TextLineOrientationClassification(
4 model_name="PP-LCNet_x1_0_textline_ori",
5 engine="onnxruntime",
6)
7output = model.predict("./demo.jpg", batch_size=1)
8for res in output:
9 res.print()
10 res.save_to_json(save_path="./output/res.json")