gradio/demo/webcam.py
2020-07-08 17:09:52 -05:00

8 lines
146 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()