# About Streaming Image

**URL:** <https://discuss.huggingface.co/t/about-streaming-image/37121>\
**Category:** 🔒 Gradio\
**Created:** [April 19, 2023, 3:09pm UTC](https://discuss.huggingface.co/t/about-streaming-image/37121 "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](https://discuss.huggingface.co/u/JackWrion)\
**Post date:** [April 19, 2023, 3:09pm UTC](https://discuss.huggingface.co/t/about-streaming-image/37121/1 "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](https://discuss.huggingface.co/u/radames)\
**Post date:** [April 20, 2023, 12:07am UTC](https://discuss.huggingface.co/t/about-streaming-image/37121/2 "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](https://discuss.huggingface.co/u/JackWrion)\
**Post date:** [April 20, 2023, 1:45am UTC](https://discuss.huggingface.co/t/about-streaming-image/37121/3 "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
