Hi. πβ
Today, I will share with you the best way to extract text from an image.
In this post i will use EasyOCR
EasyOCR supported 80+ languages like English, Arabic, etc.
pip install easyocr
Test image
Code
import easyocr
render = easyocr.Reader(['en'])
result = render.readtext('test.PNG')
for (bbox, text, prob) in result:
print(text, prob)
result
Transaction history 0.7842562120735963
Date 0.9999991655349731
Status 0.9554524819849702
lype 0.507298361736864
Amount 0.9999717243897412
28 Jan, 2026 0.7362858686793263
Cancelled 0.9872234177018016
7 Withdrawn via 0.6650554314011714
Tipalti 0.974117337370147
-S1140 0.7596422017986225
Top comments (0)