【发布时间】:2016-03-13 06:40:51
【问题描述】:
我想尝试阅读简单的图像但我有以下错误:
import requests
import pytesseract
from PIL import Image
from StringIO import StringIO
from lxml import html
session=requests.Session()
cont=session.get('http://This_site.com/').content
tree=html.fromstring(cont)
token=tree.xpath(...)
session_id=token.split(...)
response=session.get('http://This_site.com/'+session_id)
captcha=pytesseract.image_to_string(Image.open(StringIO(response.content)))
print captcha
错误:
[Errno 2] No such file or directory
【问题讨论】:
标签: python image tesseract stringio