I made a receipt generator for testing OCR
A free browser tool that makes fictional receipt photos with the ground truth JSON, so you can check if your OCR actually read them right.
I made a receipt generator for testing OCR
For the Build Hybrid AI hackathon I made a receipt generator for testing OCR. It draws a fictional thermal receipt (Bulgarian or English), turns it into a phone photo and gives you the ground truth JSON. So you can check if your scanner got the total right, instead of squinting at it.
What it does
- Condition slider. The good photos were too good and the bad ones were too bad, so now you pick something in the middle and it sets the blur, noise, lighting and the rest for you.
- Photo problems: blur, camera shake, noise, glare, a hand shadow, tilt, skew, folds, crumpled paper, curl and a cut-off corner.
- Bounding boxes for every line and word, in pixels of the final image.
- Batch export: a zip with hundreds of images, their JSON and a manifest of the settings.
Everything runs in the browser and nothing gets uploaded. The code is on GitHub.
Don’t be that guy
The shops, tax numbers and items are all made up. The images are not receipts and are not for claiming expenses. It’s for testing software, nothing else.
Now go break your OCR.
This post is licensed under CC BY-NC 4.0 by the author.
