ajitrajasekharan commited on
Commit
94b29b4
·
1 Parent(s): ce37f9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import PIL
2
  from PIL import ImageDraw
3
  import streamlit as st
 
4
 
5
  def load_image(image_file):
6
  img = PIL.Image.open(image_file)
@@ -12,6 +13,9 @@ if uploaded_file is not None:
12
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
13
  st.write(file_details)
14
  st.image(load_image(uploaded_file),width=250)
 
 
 
15
 
16
 
17
 
 
1
  import PIL
2
  from PIL import ImageDraw
3
  import streamlit as st
4
+ import easyocr
5
 
6
  def load_image(image_file):
7
  img = PIL.Image.open(image_file)
 
13
  file_details = {"FileName":uploaded_file.name,"FileType":uploaded_file.type,"FileSize":uploaded_file.size}
14
  st.write(file_details)
15
  st.image(load_image(uploaded_file),width=250)
16
+ reader = easyocr.Reader(['en'])
17
+ bound = reader.readtext(img)
18
+ st.write(str(bound))
19
 
20
 
21