Rasleen's picture
Create app.py
eba7dfa verified
raw
history blame
345 Bytes
import gradio as gr
import cv2
import mediapipe
import numpy as np
def process_frame(image):
# image is a frame from the webcam
# You will process it and return the modified version
return image
gr.Interface(
fn=process_frame,
inputs=gr.Image(source="webcam", streaming=True),
outputs="image",
live=True
).launch()