Soumen commited on
Commit
f7969d8
·
1 Parent(s): 43bebe9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -111,10 +111,10 @@ def main():
111
  text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
112
  else:
113
  img = Image.open(uploaded_photo)
114
- img = img.save("img.png")
115
- img = cv2.imread("img.png")
116
- text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
117
- st.success(text)
118
  elif camera_photo:
119
  img = Image.open(camera_photo)
120
  img = img.save("img.png")
 
111
  text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
112
  else:
113
  img = Image.open(uploaded_photo)
114
+ img = img.save("img.png")
115
+ img = cv2.imread("img.png")
116
+ text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark to see Bangla Image's Text") else pytesseract.image_to_string(img)
117
+ st.success(text)
118
  elif camera_photo:
119
  img = Image.open(camera_photo)
120
  img = img.save("img.png")