Spaces:
Runtime error
Runtime error
File size: 365 Bytes
27e3c48 0c830e5 0649739 0c830e5 27e3c48 0c830e5 27e3c48 ac0eccd 27e3c48 e23ca33 27e3c48 0c830e5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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)
|