使用pytesseract出现错误:“[WinError 2] 系统找不到指定的文件
解决: import pytesseract from PIL import Imagepytesseract.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'))