2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-01-12 10:34:32 +08:00
gradio/demo/webcam.py
2020-08-10 12:30:15 -07:00

8 lines
179 B
Python

import gradio as gr
import numpy as np
def snap(image):
return image
gr.Interface(snap, gr.inputs.Image(shape=(100,100), image_mode="L", source="webcam"), "image").launch()