Case study · Transportation
OCRed
High-volume OCR ETL for a European toll agency
At a glance
- Client
- A European toll agency
- Industry
- Transportation
- Stack
- Node.js · Python · Pandas · NumPy


- 01 · New templatewhen a new layout arrives
- 02 · Template per layoutone per document format
- 03 · Preview · edit · removeon every template
~1Mscanned pages a day
Project details
OCRed is a document intelligence system for a European toll agency. Toll records arrive as scanned PDFs, around a million pages a day, in several different document layouts. OCRed reads them, maps what it reads to the agency's fields, puts the result in front of a person for approval, and commits approved records to the agency's database.
Why reading the page is only half the job
Toll operations produce paperwork at a volume nobody can key in by hand, and it arrives as scans in layouts that differ from one source to the next. Reading the text is only half the job. The data has to be right before it reaches the agency's systems, because everything downstream depends on it, and there has to be a record of who approved what.
From drop folder to database
Files land in drop folders on the agency's servers. A Node.js file watcher picks each one up and routes a reference to it, rather than the file itself, to a Python OCR microservice. A second microservice handles mapping: it matches the document to its template, maps the extracted values to the right fields, and stages the result for approval. Approved data is committed to the target database through automated sync operations.
The Node and Python services are event-driven, communicating through events rather than direct calls, so each stage can be scaled on its own. Data handling inside the pipeline uses Pandas and NumPy. Every ETL step is idempotent and retryable: if a step fails and runs again, it cannot create a duplicate record.
One template per document layout
Each layout gets a template that tells the mapping service where its fields and tables are. Templates live in a searchable library where staff can preview, edit or remove one, and add a new one when a new layout arrives. Every extracted value carries a confidence score.
Approval, roles and audit
Nothing is committed without approval. The approval screen pairs the extracted data with the original scan, so a reviewer can compare them line by line and correct a value before signing it off. Access is split into Admin, View and Approval roles, a real-time operational dashboard shows what is moving through the pipeline, and every action is kept in a full audit trail.
OCRed processes around a million scanned pages a day, and a person approves every record before it reaches the agency's database.
The life of a page
- Drop — a scanned PDF lands in a server drop folder
- Detect — the Node.js file watcher picks it up and routes a reference to the OCR service
- Read — the Python OCR microservice extracts the text
- Map — the mapping service matches the template and maps each value to its field, with a confidence score
- Approve — a reviewer checks the data against the scan, then corrects or approves it
- Commit — approved data is written to the target database and synced
Design
The templates screen shows each layout as a thumbnail of the real document, named for its source, with preview, edit and remove controls on each card, a search field, and a New Template button at the top.
What we'd build next
Next, we'd add a machine-assisted review queue that puts low-confidence records in front of reviewers first, an audit API for downstream reconciliation, and automated stakeholder notifications once a batch is approved.
Part of our work in
Microservices & event-driven architecture →See the work in action. Start your project with us.
Start a projectOther Projects
- 01
Sales Ops Engine
AI outreach pipeline with personalised video, built on n8n
AI AutomationWorkflow Orchestration - 02
Lead Discovery App
React Native app for finding and exporting B2B leads on the go
Mobile AppReact Native - 03

Tuku
High-availability URL shortener & analytics
Full-Stack ProductWeb Application - 04

Factoreal
Omnichannel marketing automation: no-code journeys, an event pipeline and analytics
Marketing AutomationJourney Builder - 05



TempMon
IoT orchestration for ambient control
IoT DashboardRealtime - 06



Timelon
A Pomodoro timer for the desktop, counting down in the menu bar
Desktop AppTauri