Instructions to use PaddlePaddle/UVDoc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use PaddlePaddle/UVDoc with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import TextImageUnwarping model = TextImageUnwarping(model_name="UVDoc") 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
Download config.json from PaddlePaddle/UVDoc: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/PaddlePaddle/UVDoc/resolve/main/config.json
- Command line
-
hf download hf://PaddlePaddle/UVDoc/config.json
-
curl -L -o config.json https://huggingface.co/PaddlePaddle/UVDoc/resolve/main/config.json
1.49 kB
| { | |
| "Global": { | |
| "model_name": "UVDoc" | |
| }, | |
| "Hpi": { | |
| "backend_configs": { | |
| "paddle_infer": { | |
| "trt_dynamic_shapes": { | |
| "img": [ | |
| [ | |
| 1, | |
| 3, | |
| 128, | |
| 64 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 256, | |
| 128 | |
| ], | |
| [ | |
| 8, | |
| 3, | |
| 512, | |
| 256 | |
| ] | |
| ] | |
| } | |
| }, | |
| "tensorrt": { | |
| "dynamic_shapes": { | |
| "img": [ | |
| [ | |
| 1, | |
| 3, | |
| 128, | |
| 64 | |
| ], | |
| [ | |
| 1, | |
| 3, | |
| 256, | |
| 128 | |
| ], | |
| [ | |
| 8, | |
| 3, | |
| 512, | |
| 256 | |
| ] | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } |