# How to stream real time webcam image to node-red at regular interval?

**URL:** <https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070>\
**Category:** General\
**Created:** [22 May 2020 07:31 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070 "2020-05-22T07:31:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mst](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mst](https://discourse.nodered.org/u/mst)\
**Post date:** [22 May 2020 07:31 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/1 "2020-05-22T07:31:32Z")

</div>

Hello every one, i want to know how to click image one by one from laptop webcam in regular interval so as to feed that image to ibm visual recognition model in node-red? Is there any other node through which we can do this apart from exec node like function node? Please help, I need this for a project that i need to submit within this month.

---

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [22 May 2020 08:01 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/2 "2020-05-22T08:01:35Z")

</div>

Where are you running Node-RED? It makes a big difference to how you might get this done.  
Check out [flows.nodered.org](http://flows.nodered.org) for some tips.  
Also did you do a search of these forums, there seems to be quite a few posts asking a very similar question that might have some ideas for you to try.

---

<div class="post-metadata">

**Author:** ![mst](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mst](https://discourse.nodered.org/u/mst)\
**Post date:** [22 May 2020 08:30 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/3 "2020-05-22T08:30:10Z")

</div>

Iam running node red through a ibm cloud lite account. Iam new to node-red & node.js ,so its getting a bit difficult for me to grasp . If u could suggest please suggest me something.

---

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [22 May 2020 13:58 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/4 "2020-05-22T13:58:53Z")

</div>

I suggest you get a Raspberry Pi and camera.  
Run Node-RED on the Pi and send the images to your IBM account via MQTT. Do the visual recognition in the IBM cloud by all means, but sending the images there will be a lot simpler from the Pi.  
Use this Node here; [https://flows.nodered.org/node/node-red-contrib-camerapi](https://flows.nodered.org/node/node-red-contrib-camerapi)

---

<div class="post-metadata">

**Author:** ![mst](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mst](https://discourse.nodered.org/u/mst)\
**Post date:** [22 May 2020 14:49 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/5 "2020-05-22T14:49:11Z")

</div>

ok, thanks for ur help Sir

---

<div class="post-metadata">

**Author:** ![mst](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mst](https://discourse.nodered.org/u/mst)\
**Post date:** [23 May 2020 10:56 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/6 "2020-05-23T10:56:02Z")

</div>

Hello Sir, as per the requirement of our project we need to run node-red from ibm cloud and use the laptop/pc webcam to send live photos at regular interval.  
Or can u suggest any way by which i can upload images files to node-red at regular interval ?  
Any possible method, if available....

---

<div class="post-metadata">

**Author:** ![thebaldgeek](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thebaldgeek/32/93523_2.png) [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Post date:** [23 May 2020 11:04 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/7 "2020-05-23T11:04:24Z")

</div>

Perhaps you could use USB webcam software to save images to your local laptop hard drive.  
[https://www.yawcam.com/](https://www.yawcam.com/)  
Then run Node-RED on the laptop to send the images to IBM Cloud at regular interval.

---

<div class="post-metadata">

**Author:** ![mst](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mst](https://discourse.nodered.org/u/mst)\
**Post date:** [24 May 2020 11:41 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/8 "2020-05-24T11:41:00Z")

</div>

Fine Sir, i will try it. Thanks.. for giving some time for my doubts. 😃

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [24 May 2020 18:00 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/9 "2020-05-24T18:00:05Z")

</div>

@thebaldgeek  
I think you initially suggested to use NR locally with PiCam and to send images via mqtt to the IBM cloud. I think this is still a good suggestion, you just do mqtt-to-mqtt. Like

> Laptop w PiCam, NR w mqtt client node -----\> IBM Cloud w mqtt broker ---\> NR w mqtt client node

And then do the stuff in the cloud, like recognition etc etc

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 July 2020 18:00 UTC](https://discourse.nodered.org/t/how-to-stream-real-time-webcam-image-to-node-red-at-regular-interval/27070/10 "2020-07-23T18:00:08Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
