添加 main.py
This commit is contained in:
parent
c33ad8cd1a
commit
238cc51049
15
main.py
Normal file
15
main.py
Normal file
@ -0,0 +1,15 @@
|
||||
import io
|
||||
from PIL import Image, ImageFile
|
||||
from paddleocr import PaddleOCR
|
||||
|
||||
|
||||
# 加载模型 (en ch japan korean ru)
|
||||
print(f'开始加载模型...')
|
||||
CH = PaddleOCR(use_angle_cls=True, lang="ch")
|
||||
|
||||
print(f'开始加载图像...')
|
||||
image = Image.open()
|
||||
|
||||
print(f'开始提取文字...')
|
||||
ch = CH.ocr(image, cls=True)[0]
|
||||
print(ch)
|
Loading…
Reference in New Issue
Block a user