Soumen commited on
Commit
ccaea15
1 Parent(s): fd37fd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -19,6 +19,7 @@ To perform basic and useful NLP task with Streamlit, Spacy, Textblob and Gensim
19
  # Core Pkgs
20
  import os
21
  os.system('sudo apt-get install tesseract-ocr')
 
22
  os.system('pip install -q pytesseract')
23
  import streamlit as st
24
  import os
@@ -104,7 +105,7 @@ def main():
104
  img = Image.open(uploaded_photo)
105
  img = img.save("img.png")
106
  img = cv2.imread("img.png")
107
- text = pytesseract.image_to_string(img)
108
  st.success(text)
109
  if camera_photo:
110
  img = Image.open(camera_photo)
 
19
  # Core Pkgs
20
  import os
21
  os.system('sudo apt-get install tesseract-ocr')
22
+ os.system('sudo apt-get install tesseract-ocr-ben')
23
  os.system('pip install -q pytesseract')
24
  import streamlit as st
25
  import os
 
105
  img = Image.open(uploaded_photo)
106
  img = img.save("img.png")
107
  img = cv2.imread("img.png")
108
+ text = pytesseract.image_to_string(img, lang="ben")
109
  st.success(text)
110
  if camera_photo:
111
  img = Image.open(camera_photo)