Instructions to use PaddlePaddle/PP-OCRv5_server_rec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/PP-OCRv5_server_rec with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import TextRecognition model = TextRecognition(model_name="PP-OCRv5_server_rec") output = model.predict(input="path/to/image.png", batch_size=1) for res in output: res.print() res.save_to_img(save_path="./output/") res.save_to_json(save_path="./output/res.json") - Notebooks
- Google Colab
- Kaggle
No available model hosting platforms detected. Please check your network connection
#2
by hwang136 - opened
The default model used in pipeline is PP-OCRv5_server_rec, and you can also use the local model file by argument text_recognition_model_dir
However text_recognition_model_dir did not help when I set text_recognition_model_dir explicitly it did not work at all.
Great model I have to say but this PaddleOCR dependency is so lame and full of segmentaion errors when it comes to initialization also the lack of support of local model make it impossible to integrate with other project.