ACADEMIC
FormReader — Extracting Data from Handwritten Production Forms
A hybrid OCR system that turns handwritten Turkish production forms into structured, reviewable data. It is the subject of my M.Sc. research at Sakarya University.
- CATEGORY
- Academic
- STACK
- Python
- PaddleOCR
- SVTR + CTC
- OpenCV
- Vision-Language Models
- QLoRA
- React
- .NET
- PostgreSQL
- NOTES
- Research · accepted at ICEECIT 2026 · ongoing
- Scanned formhandwritten · Turkish
- Geometric normalizationtemplate-first
- Cell extractioncanonical cells
- RecognitionSVTR + CTC · VLM for free text
- Quality layerauto-accept · human review
- Structured dataExcel · JSON
01Problem
In manufacturing plants, downtime durations, downtime causes and scrap counts are still written onto paper forms by hand and retyped into a spreadsheet later. Because these values feed downtime and OEE calculations, a wrong value written silently to a database costs more than a rejected one.
02Solution
I built a hybrid pipeline that routes each field to a recognition path suited to its type and attaches a quality decision to every output. The form is first aligned to its template and fields are read from their own cells; a quality layer then sends each value either to automatic acceptance or to a human review queue. The system does not promise guaranteed accuracy; it measures its uncertainty.
03Technical Details
- Template-first geometric normalization: canonical cell coordinates, row-band alignment and a scale correction fitted to the form's ruled lines
- Two PaddleOCR recognizers run side by side: the stock PP-OCRv5 for printed text and a PP-OCRv4 SVTR+CTC model fine-tuned with a 105-character Turkish dictionary for handwriting
- The recognizer was pre-trained on 200K synthetic line images, then fine-tuned in stages on real handwriting
- A compact vision-language model (Qwen2.5-VL-3B) fine-tuned with QLoRA for free-text descriptions; this branch was evaluated offline
- Type-aware post-processing: look-alike character repair, date parsing, closed-set projection
- Selective prediction: a writer-disjoint logistic calibrator, semantic checks and an arithmetic consistency rule that compares the sum of row minutes with the header total
- A character n-gram TF-IDF and logistic regression classifier that groups downtime descriptions into categories
- A React + .NET web application dispatches OCR jobs to a Python core running on CPU; results and review actions are stored in PostgreSQL and exported as Excel and JSON
04Evaluation
- The corpus has 39 forms of one form family from 13 volunteer writers; four writers were held out of training
- On the four unseen writers, field-level exact match is 85.6% (form-level 95% confidence interval 81.1–90.6) and character accuracy is 95.4%
- The same recognizer went from 53.3% to 85.6% exact match without retraining; most of the gain came from cell localization and closed-set post-processing rather than from a larger model
- When the 39 scans were replayed through the deployed service, 49.1% of fields were accepted automatically and one of those 287 fields was wrong; 24 of the 62 misread values in the review queue were still in the record after review
- Limits: one form family, 13 writers, one annotator. The holdout was monitored while the pipeline was designed, so it is not a blind test
05Publication
Y. Çelik, S. Çakar Kaman, "Writer-Independent Hybrid OCR with Selective Prediction for Handwritten Turkish Production Forms". Accepted for ICEECIT 2026 (19–20 November 2026).
The research is supported by Sakarya University BAP (Project No. 2026-29-86-214).