Open Th3Tr1ckst3r opened 1 year ago
Even I ran into the exact problem , could you please pass me the solution if found any? Thanks.
no lang, if you recog english, reader = easyocr.Reader('en', gpu=False)
Please check this repo if you are interested in tamil ocr. It's capable of recognizing both tamil and English. https://github.com/gnana70/tamil_ocr
You can simply install using pip install ocr_tamil
from ocr_tamil.ocr import OCR
image_path = r"test_images\0.jpg" # insert your own path here
ocr = OCR(detect=True)
texts = ocr.predict(image_path)
with open("output.txt","w",encoding="utf-8") as f:
f.write(texts)
>>>> கொடைக்கானல் Kodaikanal
The runtime error can be replicated with the following code, and the Tamil language model:
Python3 code used: