Xbits commited on
Commit
9feb39a
·
verified ·
1 Parent(s): b2ed4a6

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -12
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**, a neural grid-based document unwarping model.
16
 
17
- Upload a photo of a warped, curved, or perspective-distorted document, and the model will geometrically rectify it.
18
 
19
- ## Model
20
-
21
- - [PaddlePaddle/UVDoc_safetensors](https://huggingface.co/PaddlePaddle/UVDoc_safetensors) — Transformers-compatible safetensors checkpoint.
22
 
23
- ## How it works
24
 
25
- 1. The image is resized and normalized via `UVDocImageProcessor`.
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