sudhir2016 commited on
Commit
3e0197a
1 Parent(s): f474d0d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+ import gradio as gr
3
+ import easyocr
4
+ reader = easyocr.Reader(['en'])
5
+ def data(Aadhaar):
6
+ result = reader.readtext(Aadhaar,detail=0)
7
+ df=pd.DataFrame(result)
8
+ o1=df.iloc[8].item()
9
+ o2=df.iloc[10].item()
10
+ o3=df.iloc[13].item()
11
+ o4=df.iloc[14].item()
12
+ return o1,o2,o3,o4
13
+ demo = gr.Interface(data,gr.Image(),'text')
14
+ demo.launch()