gradio/demo/webcam.py
2020-06-26 12:41:26 -07:00

7 lines
132 B
Python

import gradio as gr
import numpy as np
def snap(image):
return np.flipud(image)
gr.Interface(snap, "webcam", "image").launch()