1
PyTesseractをインストールした後、私はMacの端末に入って動作することを確認しました。私は完全に見つけるテキストファイルに出力し、それを得たが、Enthoughtキャノピーにこのコードを実行した後:PyTesseractが動作しない
import pytesseract
from PIL import Image
print pytesseract.image_to_string(Image.open('/Users/Nelson/Desktop/Projects/R6S Statistics/OCR/ocr-test.png'))
私はこの取得:
:このエラーは、PILファイルから来AttributeError: 'ImagingDecoder' object has no attribute 'pulls_fd'
を
/Users/Nelson/Desktop/Canopy/User/lib/python2.7/site-packages/PIL/ImageFile.pyc