File size: 284 Bytes
eba7dfa
 
 
 
 
 
 
 
 
 
12f11d0
1
2
3
4
5
6
7
8
9
10
11
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.Camera(),outputs="image").launch()