1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 使用pytesseract出现错误:“[WinError 2] 系统找不到指定的文件

使用pytesseract出现错误:“[WinError 2] 系统找不到指定的文件

时间:2023-11-25 13:15:08

相关推荐

使用pytesseract出现错误:“[WinError 2] 系统找不到指定的文件

使用pytesseract出现错误:“[WinError 2] 系统找不到指定的文件

解决: import pytesseract from PIL import Image

pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe' img=Image.open(r'C:\Users\libanggeng\Pictures\idcard\id_card.jpg')

print (pytesseract.image_to_string(img, lang='chi_sim'))

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。