|
发表于 2015-12-4 12:02:48
|
显示全部楼层
大神帮忙看下,这是什么问题....
Traceback (most recent call last):
File "/Users/hy/Documents/PyCharm/Test1/t.py", line 12, in <module>
vcode = image_to_string(image)
File "/System/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pytesseract/pytesseract.py", line 166, in image_to_string
errors = get_errors(error_string)
File "/System/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pytesseract/pytesseract.py", line 114, in get_errors
error_lines = tuple(line for line in lines if line.find('Error') >= 0)
File "/System/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pytesseract/pytesseract.py", line 114, in <genexpr>
error_lines = tuple(line for line in lines if line.find('Error') >= 0)
TypeError: Type str doesn't support the buffer API |
|