Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,7 @@ def main():
|
|
| 108 |
img = Image.open(uploaded_photo)
|
| 109 |
img = img.save("img.png")
|
| 110 |
img = cv2.imread("img.png")
|
| 111 |
-
text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark here to see in Bangla") else pytesseract.image_to_string(img)
|
| 112 |
st.success(text)
|
| 113 |
if camera_photo:
|
| 114 |
img = Image.open(camera_photo)
|
|
|
|
| 108 |
img = Image.open(uploaded_photo)
|
| 109 |
img = img.save("img.png")
|
| 110 |
img = cv2.imread("img.png")
|
| 111 |
+
text = pytesseract.image_to_string(img, lang="ben") if st.checkbox("Mark here to see in Bangla for Bangla Images only") else pytesseract.image_to_string(img)
|
| 112 |
st.success(text)
|
| 113 |
if camera_photo:
|
| 114 |
img = Image.open(camera_photo)
|