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.42k stars 3.16k forks source link

How to recognize numbers only? #503

Closed sh2hh closed 3 years ago

sh2hh commented 3 years ago

My text contains just numbers.In order to improve accuracy of recognition,how to recognize numbers only?

SamSamhuns commented 3 years ago

Use the allowlist parameter, when calling the readtext method of the reader object

reader.readtext('image.jpg', allowlist = '0123456789')

sh2hh commented 3 years ago

thanks a lot!

---Original--- From: @.> Date: Sun, Aug 1, 2021 22:24 PM To: @.>; Cc: @.**@.>; Subject: Re: [JaidedAI/EasyOCR] How to recognize numbers only? (#503)

Use the allowlist parameter, when calling the readtext method of the reader object

reader.readtext('image.jpg', allowlist = '0123456789')

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

PiotrCzapla commented 3 years ago

@sh2hh you could close the ticket if it works for you.