Spaces:
Sleeping
Sleeping
File size: 364 Bytes
3e0197a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import pandas as pd
import gradio as gr
import easyocr
reader = easyocr.Reader(['en'])
def data(Aadhaar):
result = reader.readtext(Aadhaar,detail=0)
df=pd.DataFrame(result)
o1=df.iloc[8].item()
o2=df.iloc[10].item()
o3=df.iloc[13].item()
o4=df.iloc[14].item()
return o1,o2,o3,o4
demo = gr.Interface(data,gr.Image(),'text')
demo.launch() |