ajitrajasekharan's picture
Update app.py
4352add
raw
history blame
407 Bytes
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(requests.get(url, stream=True).raw).convert("RGB")
#bound = reader.readtext(img)
#print(bound)
print("fetched image")