Commit 9ad95da7 authored by Chanwoong Kim's avatar Chanwoong Kim

Support tesseract windows port.

parent 66b92ad1
......@@ -26,7 +26,7 @@ from . import util
# CHANGE THIS IF TESSERACT IS NOT IN YOUR PATH, OR IS NAMED DIFFERENTLY
TESSERACT_CMD = 'tesseract'
TESSERACT_CMD = 'tesseract.exe' if os.name == 'nt' else 'tesseract'
TESSDATA_POSSIBLE_PATHS = [
"/usr/local/share/tessdata",
......@@ -36,6 +36,8 @@ TESSDATA_POSSIBLE_PATHS = [
"/usr/share/tesseract-ocr/tessdata",
"/app/vendor/tesseract-ocr/tessdata", # Heroku
"/opt/local/share/tessdata", # OSX MacPorts
r"C:\Program Files (x86)\Tesseract-OCR\tessdata", # Windows port
r"C:\Program Files\Tesseract-OCR\tessdata", # Windows port
]
TESSDATA_EXTENSION = ".traineddata"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment