Image-to-Text
ONNX
PaddleOCR
English
Chinese
onnxruntime
pp_formulanet
OCR
PaddlePaddle
formula_recognition
Instructions to use ningpp/PP-FormulaNet-L-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use ningpp/PP-FormulaNet-L-ONNX with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import FormulaRecognition model = FormulaRecognition(model_name="PP-FormulaNet-L-ONNX") 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
| { | |
| "image_processor": { | |
| "do_align_long_axis": false, | |
| "do_crop_margin": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_thumbnail": true, | |
| "size": { | |
| "height": 768, | |
| "width": 768 | |
| }, | |
| "image_mean": [0.7931, 0.7931, 0.7931], | |
| "image_std": [0.1738, 0.1738, 0.1738], | |
| "image_processor_type": "PPFormulaNetImageProcessor", | |
| "resample": 2, | |
| "return_tensors": "pt" | |
| }, | |
| "processor_class": "PPFormulaNetProcessor" | |
| } |