Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
from PIL import Image
|
5 |
import easyocr
|
6 |
import ocr as o
|
7 |
-
reader = easyocr.Reader(['
|
8 |
def fun(id_img_path,selfie_img_path):
|
9 |
res = False
|
10 |
img = Image.fromarray(id_img_path,'RGB')
|
@@ -21,7 +21,7 @@ interface = gr.Interface(fun,inputs=[gr.Image(),gr.Image()],outputs='text')
|
|
21 |
# Will return True or false
|
22 |
|
23 |
|
24 |
-
interface.launch(
|
25 |
|
26 |
# id_img_path ="test.jpg" #give image path
|
27 |
# selfie_img_path = "142142_faces.jpg" #give path of curret face
|
|
|
4 |
from PIL import Image
|
5 |
import easyocr
|
6 |
import ocr as o
|
7 |
+
reader = easyocr.Reader(['en'])
|
8 |
def fun(id_img_path,selfie_img_path):
|
9 |
res = False
|
10 |
img = Image.fromarray(id_img_path,'RGB')
|
|
|
21 |
# Will return True or false
|
22 |
|
23 |
|
24 |
+
interface.launch()
|
25 |
|
26 |
# id_img_path ="test.jpg" #give image path
|
27 |
# selfie_img_path = "142142_faces.jpg" #give path of curret face
|