JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
24.6k stars 3.17k forks source link

How do I control maximum and mimimum font size to be read? #1292

Open ishandutta2007 opened 3 months ago

ishandutta2007 commented 3 months ago

I have an image like this Screenshot 2024-08-07 at 11 47 20 AM it is always reading like this @61.23

I just wanted to read like 61.23

darrenchang commented 3 months ago

The text detector model is detecting that logo as text. You need to find tune the text detector model (CRAFT) so it doesn't correctly detects the text regions. What reader.readtext() does is that it first inference using the text detections model to extract the text regions, then the recognizer model to recognize the characters/texts Train your own CRAFT model - https://github.com/JaidedAI/EasyOCR/tree/master/trainer/craft

ishandutta2007 commented 1 month ago

@darrenchang I am looking for an easier work around to reject it based on say colour or size .