How to display multiple webcam images?
Hello.I’m building object recognition using a web camera.But I can only see one webcam.Is there a way to display the second one?Paste the code you are trying.thanks.import gradio as gr

def webcam(video0,video1):
    return video0,video1

interface = gr.Interface(
    fn=webcam,
    inputs=[gr.Webcam(mirror_webcam=False,streaming=True),
            gr.Webcam(mirror_webcam=True,streaming=True),
            ],
    outputs=["image","image"],
    )

if __name__ == "__main__":
    interface.launch()
2022-09-26T13:48:49Z
Hi@tomtechjp, this works for me here:image1164×930 69.7 KBTry the latest version of gradio (currentlygradio==3.4b3).Also, I’m not sure if you can have two different streaming webcams (or why you’d need that?) But two non-streaming webcams should definitely work
2022-09-28T05:13:38Z
Hellow,@abidlabsThank you for taking the time out of your busy schedule to respond.I wanted to use two different cameras to recognize objects from two directions at the same time.I would like to find another way.Thank you very much.
2022-10-01T05:22:46Z
For that, we’d need to first support secondary webcams. Can you chime in here on this open issue with your use case so we can make sure to report it?Adding Rear Camera Support for Mobile Phones · Issue #818 · gradio-app/gradio (github.com)