Spaces:
Runtime error
Runtime error
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title: UVDoc Document Unwarping
|
| 3 |
emoji: 📄
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
|
@@ -10,22 +10,18 @@ pinned: false
|
|
| 10 |
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# UVDoc Document Unwarping
|
| 14 |
|
| 15 |
-
Interactive demo of **UVDoc**
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
- [PaddlePaddle/UVDoc_safetensors](https://huggingface.co/PaddlePaddle/UVDoc_safetensors) — Transformers-compatible safetensors checkpoint.
|
| 22 |
|
| 23 |
-
##
|
| 24 |
|
| 25 |
-
|
| 26 |
-
2. `UVDocModel` predicts spatial transformation parameters.
|
| 27 |
-
3. `post_process_document_rectification` warps the image back to a flat rectangle.
|
| 28 |
-
4. The rectified image is returned.
|
| 29 |
|
| 30 |
## Paper
|
| 31 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: UVDoc Document Unwarping (High-Resolution)
|
| 3 |
emoji: 📄
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: green
|
|
|
|
| 10 |
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# UVDoc Document Unwarping (High-Resolution)
|
| 14 |
|
| 15 |
+
Interactive demo of **UVDoc** using the ONNX grid-output model for **native-resolution** document unwarping.
|
| 16 |
|
| 17 |
+
## Why this version?
|
| 18 |
|
| 19 |
+
- The original PaddlePaddle/UVDoc_safetensors checkpoint outputs a fixed low-res rectified image.
|
| 20 |
+
- This space uses the ONNX grid model (`fredcallagan/uvdoc-grid-onnx`) which outputs a coordinate grid. That grid is then applied to your **original full-resolution image** via `cv2.remap`, preserving detail.
|
|
|
|
| 21 |
|
| 22 |
+
## Model
|
| 23 |
|
| 24 |
+
- [fredcallagan/uvdoc-grid-onnx](https://huggingface.co/fredcallagan/uvdoc-grid-onnx)
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## Paper
|
| 27 |
|