CRAFT-pytorch icon indicating copy to clipboard operation
CRAFT-pytorch copied to clipboard

how to get the recognized text ?

Open balaji-skoruz opened this issue 1 year ago • 2 comments

balaji-skoruz avatar Mar 06 '23 12:03 balaji-skoruz

This model just inference Character-Region Not a OCR.

Try TrOCR for cropped image of CRAFT.

tienipia avatar Apr 03 '23 05:04 tienipia

@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]))

gnana70 avatar Feb 19 '24 15:02 gnana70