from PIL import Image
import pytesseract
image = Image.open('1.jpg')
text=pytesseract.image_to_string(image ,lang='chi_sim')
print(text)
Python:pytesseract模块的使用(OCR模块)
最新推荐文章于 2024-07-01 11:21:40 发布
from PIL import Image
import pytesseract
image = Image.open('1.jpg')
text=pytesseract.image_to_string(image ,lang='chi_sim')
print(text)