Model reference · open weights
UVDoc_onnx is an open-weight language model from Baidu.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the PaddlePaddle/UVDoc_onnx model card, 2026-10-01
What it is
| Released by | Baidu |
|---|---|
| Released | 2026-05-26 |
From the model card
The main purpose of text image correction is to carry out geometric transformation on the image to correct the document distortion, inclination, perspective deformation and other problems in the image, so that the subsequent text recognition can be more accurate.
| Model | CER |
|---|---|
| UVDoc | 0.179 |
Note: Test data set: docunet benchmark data set.
pip install -U paddleocr
pip install -U onnxruntime-gpu
paddleocr text_image_unwarping -i ./demo.jpg --model_name UVDoc --engine onnxruntime
from paddleocr import TextImageUnwarping
model = TextImageUnwarping(
model_name="UVDoc",
engine="onnxruntime",
)
output = model.predict("./demo.jpg", batch_size=1)
for res in output:
res.print()
res.save_to_img(save_path="./output/")
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
How it works