TEDxPY icon indicating copy to clipboard operation
TEDxPY copied to clipboard

请问这是什么问题

Open lixing2017 opened this issue 7 years ago • 1 comments

File "D:\TEDxPY-master\TEDxPY.py", line 26, in text=pytesseract.image_to_string(Image.open('haha.jpg'),lang='chi_sim') File "C:\Python\Python35\lib\site-packages\pytesseract\pytesseract.py", line 125, in image_to_string raise TesseractError(status, errors) pytesseract.pytesseract.TesseractError: (1, 'Error opening data file \Program Files (x86)\Tesseract-OCR\chi_sim.traineddata')

lixing2017 avatar Jan 14 '18 14:01 lixing2017

text=pytesseract.image_to_string(Image.open('haha.jpg'),lang='chi_sim') 这一行的图片要加路径,若路径中含有中文,用小写字母u+‘路径‘ 希望对你有帮助~

githublzb avatar Jan 18 '18 12:01 githublzb