Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 486 Bytes

modules.md

File metadata and controls

22 lines (19 loc) · 486 Bytes

Modules

Apsisnet

from BengaliaiOCR import ApsisNet
recognizer=ApsisNet()
texts=recognizer.infer(crops,batch_size=32,normalize_unicode=True)

PaddleDBNet

# initialization
from BengaliaiOCR import PaddleDBNet
detector=PaddleDBNet(use_gpu=False)
# getting word boxes
word_boxes=detector.get_word_boxes(img)
# getting line boxes
line_boxes=detector.get_line_boxes(img)
# getting crop with either of the results
crops=detector.get_crops(img,word_boxes)