ajitrajasekharan's picture
Update app.py
c3997fb
raw
history blame
389 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)
img = PIL.Image.open("dummy.jpg")
print("fetched image")
reader = easyocr.Reader(['en'])
#url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
bound = reader.readtext(img)
print(bound)
print("Completed")