Canny / app.py
sudhir2016's picture
Update app.py
e8fdd27
raw
history blame
268 Bytes
import gradio
import cv2
def infer(img,name):
out = cv2.Canny(img,100,200)
out1= cv2.resize(out,(250,250))
out2=cv2.putText(out1,name,(10,25),4,1,(255,0,0))
return out2
iface = gradio.Interface(fn=infer, inputs=['image','text'], outputs='image')
iface.launch()