File size: 370 Bytes
27e3c48
0c830e5
 
 
8f0ad8d
0c830e5
 
0649739
 
0c830e5
27e3c48
0c830e5
 
27e3c48
e1bfb70
e8a6369
f62db75
 
27e3c48
4352add
 
27e3c48
0c830e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import easyocr
import PIL 
from PIL import ImageDraw
import streamlit as st
import requests


x = st.slider('Select a value')
st.write(x, 'squared is', x * x)

reader = easyocr.Reader(['en'])


url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
img = PIL.Image.open(url)
print(img)
bound = reader.readtext(img)
print(bound)

print("fetched image")