Most Document Understanding / OCR training sets I see are still clean PDFs or flat scans. What actually hits production is a printed page on a desk or a phone photo: bad lighting, folds, glare, odd angle, tiny text.
I’ve been generating that kind of “photographed in a real scene” page from scratch, with annotations, instead of template renders plus blur/noise/rotation.
Has anyone here measured whether this type of data actually improves DU results versus the usual clean set + augmentation? Even a rough number would help — digitization, extraction, or Validation Station volume.
Failure modes are just as useful. The cases I keep seeing are dense tables after a crease, small text at an angle, mixed-script pages, and glossy paper with window glare.
Curious if others ran into the same gap, or found a better way to close it.
Hi @Alro_wilde ,
Yes, this is a common gap in Document Understanding projects. Training only on clean PDFs often gives good lab results but struggles in production when documents come from mobile photos, scans, folds, glare, shadows, or skewed angles.
A better approach is to include real-world samples or synthetic photo-like documents in the training dataset. This usually improves OCR accuracy, field extraction, and classification performance, especially for:
Folded or creased documents
Mobile phone images with perspective distortion
Small text at an angle
Glare and uneven lighting
Mixed-language or mixed-script documents
Dense tables and handwritten annotations
In UiPath DU, the best results typically come from a hybrid dataset consisting of:
Clean PDFs (baseline training)
Real production samples
Augmented/synthetic photo-style documents
Also, use preprocessing steps such as deskewing, image enhancement, and contrast correction before sending documents to OCR engines.
@Jasmin_Bar thanks. The clean PDF + rotate/fade mix is already common, so that part I’m not questioning.
What I haven’t seen measured is the extra lift from putting the page in a real scene ,versus that same document with only geometric/color augmentation. If anyone has a before/after on OCR or extraction for that specific gap, even a rough number, that’s the piece I care about.
That’s right, that analogy makes sense to me too. I would also ensure that the document contents/types and size of the training set match, so the only differing factor would be human-annotated photos vs machine-annotated photos.
Another piece of information that could be added to this paper is the labeling time/cost per 1K pages along with CER/WER and field F1.