FaceRecognition / app.py
efghi7890's picture
Update app.py
9324971
raw
history blame
310 Bytes
import gradio as gr
import cv2
def greet(image):
cap = cap = cv2.VideoCapture(video)
succes, img = vidcap.read()
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return gray
iface = gr.Interface(
fn=greet,
inputs=gr.Video[source"webcam", format "mp4"],
outputs="image"
)
iface.launch()