Tzetha commited on
Commit
01472b4
·
1 Parent(s): 5da243b

Edited app&setup

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. setup.sh +0 -0
app.py CHANGED
@@ -126,7 +126,7 @@ class Languages(enum.Enum):
126
  class ImageReader:
127
  def __init__(self, os):
128
  if os == OS.Windows:
129
- pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe'
130
 
131
  def extract_text(self, image: Image, lang: Languages):
132
  extracted_text = pytesseract.image_to_string(image, lang=lang.value)
 
126
  class ImageReader:
127
  def __init__(self, os):
128
  if os == OS.Windows:
129
+ pytesseract.tesseract_cmd = '/usr/bin/tesseract'
130
 
131
  def extract_text(self, image: Image, lang: Languages):
132
  extracted_text = pytesseract.image_to_string(image, lang=lang.value)
setup.sh CHANGED
File without changes