# How to display multiple webcam images?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-display-multiple-webcam-images%2F23528%3E%5C
**Category:** 🔒 Gradio\
**Created:** [September 23, 2022, 7:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-display-multiple-webcam-images%2F23528 "2022-09-23T07:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtechjp](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tomtechjp](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftomtechjp)%5C
**Post date:** [September 23, 2022, 7:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-display-multiple-webcam-images%2F23528%2F1 "2022-09-23T07:40:10Z")

</div>

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.

```auto
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()

```

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabidlabs)%5C
**Post date:** [September 26, 2022, 1:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-display-multiple-webcam-images%2F23528%2F2 "2022-09-26T13:48:49Z")

</div>

Hi @tomtechjp, this works for me here:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/f/fcf802d5a475711223baa1d52e1f3cc93f99d808.jpeg)

Try the latest version of gradio (currently `gradio==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

---

<div class="post-metadata">

**Author:** ![tomtechjp](https://avatars.discourse-cdn.com/v4/letter/t/919ad9/32.png) [@tomtechjp](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftomtechjp)%5C
**Post date:** [September 28, 2022, 5:13am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-display-multiple-webcam-images%2F23528%2F3 "2022-09-28T05:13:38Z")

</div>

Hellow,@abidlabs  
Thank 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.

---

<div class="post-metadata">

**Author:** ![abidlabs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abidlabs/32/21878_2.png) [@abidlabs](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabidlabs)%5C
**Post date:** [October 1, 2022, 5:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-to-display-multiple-webcam-images%2F23528%2F4 "2022-10-01T05:22:46Z")

</div>

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)](https://github.com/gradio-app/gradio/issues/818)
