gradio/demo/webcam.py
2020-07-06 11:12:48 -07:00

7 lines
145 B
Python

import gradio as gr
import numpy as np
def snap(image):
return image
gr.Interface(snap, gr.inputs.Webcam(shape=(50,100)), "image").launch()