提取图片中的文字

from PIL import Image
import pytesseract

image = Image.open('demo.png')
content = pytesseract.image_to_string(image, lang='chi_sim')
print('demo图片中的文字内容提取出为:', content)
原文地址:https://www.cnblogs.com/hui-code/p/13922927.html