使用的12306验证码识别库 已经下载chi_sim.traineddata
环境win7,python2.7
$ python fuck12306.py
OCR Question:
Traceback (most recent call last):
File "fuck12306.py", line 151, in <module>
print 'OCR Question:', ocr_question_extract(im)
File "fuck12306.py", line 112, in ocr_question_extract
return pytesseract.image_to_string(im, lang='chi_sim').strip()
File "d:\python27\lib\site-packages\pytesseract\pytesseract.py", line 164, in
image_to_string
raise TesseractError(status, errors)
pytesseract.pytesseract.TesseractError: (255, '')
Tesseract OCR의 어떤 버전을 다운로드하셨나요? 버전과 데이터가 일치하지 않으면 이런 현상이 발생합니다