Skip to content

Instantly share code, notes, and snippets.

@jzhang533
Created March 11, 2024 03:53
Show Gist options
  • Save jzhang533/e19404f6879c8f4f9e73e02eb6a49d9d to your computer and use it in GitHub Desktop.
Save jzhang533/e19404f6879c8f4f9e73e02eb6a49d9d to your computer and use it in GitHub Desktop.
tinydemo
from paddleocr import PaddleOCR
ocr = PaddleOCR(
use_angle_cls=True, lang="en"
) # need to run only once to download and load model into memory
img_path = "./doc/imgs_en/img_12.jpg"
result = ocr.ocr(img_path, cls=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment