Automation
DocFlow.
An invoice review desk for digital and scanned documents.
Built with
- Python
- FastAPI
- React
- Tesseract
Project overview
DocFlow turns PDFs, text and JSON invoices into records that a person can review. Scanned documents go through OCR.
The reviewer compares extracted values with the source, corrects discrepancies and exports the verified record as CSV or JSON.
The challenge
A digital invoice and a scanned invoice arrive in different forms, but both need the same checks. Reviewers also need to know where each proposed value came from.
My role and approach
I built a review workspace that brings the extracted values and their source together. A reviewer can correct fields and validate amounts before exporting the result.
The workflow
- Read the invoice
- Check the amounts
- Export the record
Technical implementation
An invoice with a deliberate error
The sample scan prints a total of 349.90 where the invoice lines add up to 350.90. A reviewer can inspect the source, correct the total and validate the record. The corrected amount then carries through to the CSV or JSON export.
Keeping corrections consistent
Digital PDFs can supply text directly. PDFs containing only images go through optical character recognition. Both routes feed the same decimal checks. Versioned edits stop an older review from overwriting a more recent correction.
Outcome
The sample demonstrates a visible mismatch: the printed total differs from the sum of the line items. The corrected total appears in the exported record after validation.