[問題] pytesseract Error
我依照範例打了:
from PIL import Image
import pytesseract
print(pytesseract.image_to_string(Image.open(r'C:\Users\w1.png')))
結果顯示:
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
print(pytesseract.image_to_string(Image.open(r'C:\Users\\w1.png')))
File "E:\system\lib\site-packages\pytesseract\pytesseract.py", line 164, in
image_to_string
raise TesseractError(status, errors)
pytesseract.pytesseract.TesseractError: (1, 'Error opening data file
\\Program Files (x86)\\Tesseract-OCR\\tessdata/eng.traineddata')
整個晚上找相關的國外資料,都無法解決
不曉得有沒有人也遇過這個問題?該如何解?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.105.120.73
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1488559934.A.4DB.html
推
03/04 16:51, , 1F
03/04 16:51, 1F
→
03/05 07:51, , 2F
03/05 07:51, 2F
→
03/05 11:42, , 3F
03/05 11:42, 3F
→
03/05 11:45, , 4F
03/05 11:45, 4F
→
03/05 19:21, , 5F
03/05 19:21, 5F
→
03/05 19:22, , 6F
03/05 19:22, 6F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
Python 近期熱門文章
PTT數位生活區 即時熱門文章