CRAFT-pytorch
CRAFT-pytorch copied to clipboard
how to get the recognized text ?
@balaji-skoruz , If you want CRAFT text detection and text recognition, you can check can do by installing pip install ocr-tamil
Below snippet will help to extract English as well as Tamil language.
from ocr_tamil.ocr import OCR
image_path = r"test_images\0.jpg" # insert your own image path here
ocr = OCR(detect=True)
texts = ocr.predict(image_path)
print(" ".join(text_list[0]))