---
title: UVDoc_onnx
canonical_url: "https://www.modelscope.cn/models/PaddlePaddle/UVDoc_onnx"
md_url: "https://www.modelscope.cn/models/PaddlePaddle/UVDoc_onnx.md"
repository: PaddlePaddle/UVDoc_onnx
last_updated: 2026-06-12
license: apache-2.0
library_name:
  - onnx
language:
  - en
  - zh
downloads: 1064
stars: 0
tags:
  - OCR
  - PaddlePaddle
  - PaddleOCR
  - doc_img_unwarping
---

# UVDoc_onnx

> UVDoc_onnx - PaddlePaddle 在 ModelScope 开源的模型。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…

PaddlePaddle/UVDoc_onnx 是 ModelScope 魔搭社区上的机器学习模型，采用 apache-2.0 许可。

- **Repository**: PaddlePaddle/UVDoc_onnx
- **License**: apache-2.0
- **Tags**: OCR, PaddlePaddle, PaddleOCR, doc_img_unwarping
- **Downloads**: 1064
- **Stars**: 0
- **Last updated**: 2026-06-12

Source: https://www.modelscope.cn/models/PaddlePaddle/UVDoc_onnx

---

# UVDoc

## Introduction

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.

## Model Usage

### Install Dependencies

```shell
pip install -U paddleocr
pip install -U onnxruntime-gpu
```

### CLI Usage

```shell
paddleocr text_image_unwarping -i ./demo.jpg --model_name UVDoc --engine onnxruntime
```

### Python API Usage

```python
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/")
```
