Aumkeshchy2003 commited on
Commit
e604d7f
·
verified ·
1 Parent(s): 43d46ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -3,6 +3,8 @@ from PIL import Image
3
  import pytesseract
4
  import re
5
 
 
 
6
  def perform_ocr(image):
7
  extracted_text = pytesseract.image_to_string(image, lang='hin+eng')
8
  return extracted_text
 
3
  import pytesseract
4
  import re
5
 
6
+ pytesseract.pytesseract.tesseract_cmd = "/usr/bin/tesseract"
7
+
8
  def perform_ocr(image):
9
  extracted_text = pytesseract.image_to_string(image, lang='hin+eng')
10
  return extracted_text