OCR / app /ocr_engine /ocr.py
ShahzainHaider's picture
Upload folder using huggingface_hub
7bbae49
raw
history blame
187 Bytes
from paddleocr import PaddleOCR, draw_ocr
from PIL import Image
import torch
OCR = PaddleOCR(use_angle_cls=True, lang='en') # need to run only once to download and load model into memory