ajitrajasekharan's picture
Update app.py
e23ca33
raw
history blame
365 Bytes
import easyocr
import PIL
from PIL import ImageDraw
import streamlit as st
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(requests.get(url, stream=True).raw).convert("RGB")
bound = reader.readtext(img)
print(bound)