ajitrajasekharan commited on
Commit
2170976
·
1 Parent(s): 27e3c48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -3,7 +3,6 @@ import PIL
3
  from PIL import ImageDraw
4
  import streamlit as st
5
 
6
- import streamlit as st
7
 
8
  x = st.slider('Select a value')
9
  st.write(x, 'squared is', x * x)
@@ -15,12 +14,5 @@ url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
15
  img = Image.open(requests.get(url, stream=True).raw).convert("RGB")
16
  bound = reader.readtext(img)
17
 
18
- for i in range(len(bound)):
19
- bb = bound[i]
20
- left = bb[0][0][0]
21
- top = bb[0][0][1]
22
- right = bb[0][2][0]
23
- bottom = bb[0][2][1]
24
- st.text(f"bbox {left:.2f. right:.2f top:.2f bottom:.2f}")
25
 
26
 
 
3
  from PIL import ImageDraw
4
  import streamlit as st
5
 
 
6
 
7
  x = st.slider('Select a value')
8
  st.write(x, 'squared is', x * x)
 
14
  img = Image.open(requests.get(url, stream=True).raw).convert("RGB")
15
  bound = reader.readtext(img)
16
 
 
 
 
 
 
 
 
17
 
18