# About Streaming Image

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-streaming-image%2F37121%3E%5C
**Category:** 🔒 Gradio\
**Created:** [April 19, 2023, 3:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-streaming-image%2F37121 "2023-04-19T15:09:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackWrion](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@JackWrion](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJackWrion)%5C
**Post date:** [April 19, 2023, 3:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-streaming-image%2F37121%2F1 "2023-04-19T15:09:36Z")

</div>

Hi, How can I stop streaming or close webcam when I click to “Submit button”. i want spend camera for another function.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [April 20, 2023, 12:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-streaming-image%2F37121%2F2 "2023-04-20T00:07:50Z")

</div>

hi @JackWrion , I’m assuming you’re talking about Gradio Image webcam component? In that case, this is an open issue at the moment [Allow Webcam stream to be stopped/resume programmatically · Issue #3642 · gradio-app/gradio · GitHub](https://github.com/gradio-app/gradio/issues/3642)

---

<div class="post-metadata">

**Author:** ![JackWrion](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@JackWrion](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJackWrion)%5C
**Post date:** [April 20, 2023, 1:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-streaming-image%2F37121%2F3 "2023-04-20T01:45:57Z")

</div>

Yes, sir. That’s my point. I need a method for controlling the camera On/Off. I expect it to be updated soon.

The problem is I want to capture images 3 times in 3 seconds, so I use CV2.VideoCapture. But It’s not working because Gradio holds the webcam, so Cv2 cannot get it. The solution is to release webcame temporarily in Gradio, or Gradio can capture 3 images by itself.

Therefore, Is there any way for me to capture 3 images in 3 seconds when I click the “submit” button once
