openpaperwork / pyocr

A Python wrapper for Tesseract and Cuneiform -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyocr
930 stars 152 forks source link

Usage under win32 failed. #8

Closed kovich closed 11 years ago

kovich commented 11 years ago

Please refine tesseract binary checking algorithm within util.py.

os.access(os.path.join('"C:\Program Files\Tesseract-OCR"',"tesseract"), os.X_OK) False os.access(os.path.join("C:\Program Files\Tesseract-OCR","tesseract"), os.X_OK) False os.access(os.path.join("C:\Program Files\Tesseract-OCR","tesseract"), os.X_OK) False os.access(os.path.join("C:\Program Files\Tesseract-OCR","tesseract.exe"), os.X_OK) True os.access(os.path.join('"C:\Program Files\Tesseract-OCR"',"tesseract.exe"), os.X_OK) False os.access(os.path.join("C:\Program Files\Tesseract-OCR","tesseract.exe"), os.X_OK) True

jflesch commented 11 years ago

Duplicate of #7