How To Make a Synthesized Dataset To Fine-Tune Your Ocr
Last Updated on January 29, 2024 by Editorial Team
Author(s): Eivind Kjosbakken
Originally published on Towards AI.
Fine-tuning your OCR engine to your specific use case is required if you want to achieve state-of-the-art performance for your situation. Fine-tuning an OCR engine requires a large dataset, however, which is expensive to annotate. Instead, you can create your own fully synthetic dataset, requiring no annotating, which I will show you how to do in this article.
Learn to create a fully synthetic receipt dataset with this tutorial. OpenAI. (2024). ChatGPT [Large language model]. /g/g-2fkFE8rbu-dall-e
Β· MotivationΒ· Making a baselineΒ· Finding the bounding boxes in the original imageΒ· Loading the annotated dataΒ· Adding word labelsΒ· Creating synthetic receiptsΒ· Adding variation to the receipts β Augmentation 1: Add brightness β Augmentation 2: Add noise β Augmentation 3: Add perspective change β Augmentation 4: Add sharpening β Augmentation 5: Add Gaussian blur β Augmentation 6: Add contrast β Augmentation 7: Add saturationΒ· Apply the augmentationsΒ· Future workΒ· ConclusionΒ· References
My motivation for this article is the fact that I tried applying EasyOCR to read the text off some Norwegian receipts, but I found the results not to be satisfactory. The Levenshtein distance achieved on the off-the-shelf EasyOCR was around 75%, which is not good enough when it comes to extracting information from supermarket receipts…. Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI