# Detecting objects using ESP32 CAM and NODE RED

**URL:** <https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165>\
**Category:** General\
**Created:** [15 June 2021 09:48 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165 "2021-06-15T09:48:36Z")\
**Posts on this page:** 11\
**Page:** 3

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [30 June 2021 18:36 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/42 "2021-06-30T18:36:10Z")

</div>

> [@fatima1999](#):
>
> do you program your ESP32 CAM to stream or to take pictures each time you refresh the page ?

The camera is already set up to stream using and older version of [this adaptation](https://github.com/easytarget/esp32-cam-webserver) of the firmware... and as long as nothing else is connected (the firmware only allows one connection at a time) then when NR is triggered it just captures a frame. I don't know any more about the hows or whys... just learning myself.

> [@fatima1999](#):
>
> Error: ENOENT: no such file or directory, open 'Error: ESOCKETTIMEDOUT : [http://10.10.0.32/capture](http://10.10.0.32/capture)

But this error basically says that the directory or file is missing or incorrect. I programmed mine for what works in my case. You need to figure out your path then program that in. Perhaps the firmware you are running doesn't have `/capture`

---

<div class="post-metadata">

**Author:** ![fatima1999](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@fatima1999](https://discourse.nodered.org/u/fatima1999)\
**Post date:** [30 June 2021 21:33 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/43 "2021-06-30T21:33:33Z")

</div>

okay I got it , thank you

---

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [7 July 2021 14:14 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/44 "2021-07-07T14:14:20Z")

</div>

how did you modify your camera for night vision? Or what kind of camera is it?

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [7 July 2021 20:01 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/45 "2021-07-07T20:01:15Z")

</div>

That particular image shows the HKV (Hikvision) camera... the ESP32cam was just showing a dark blur at the time so I didn't bother posting it.

With the ESP32Cam module (OV2640) one can "theoretically" remove the IR filter that resides between the lens and the imager. But the whole thing is super delicate, so probably best to search for one with it already removed for nigh vision use (IF even made... I haven't found one yet). But then day use will be like looking through rose coloured glasses 🌹 👓

---

<div class="post-metadata">

**Author:** ![tve](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tve/32/59475_2.png) [@tve](https://discourse.nodered.org/u/tve)\
**Post date:** [9 July 2021 20:44 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/46 "2021-07-09T20:44:21Z")

</div>

You can find ov2640 with IR filters removed on aliexpress if you search for ov2640 IR or 850nm. I have a couple ordered so can't tell yet how they work.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [11 July 2021 06:39 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/47 "2021-07-11T06:39:56Z")

</div>

> [@Gunner](#):
>
> With the ESP32Cam module (OV2640) one can "theoretically" remove the IR filter that resides between the lens and the imager

FYI, I just discovered that the IR filter on some of these cameras is in FRONT of the lens, and if you are careful (and brave... I damaged one just trying to tune the focus, but it was glued too well), you can trim off the front layer of plastic then pry out the square filter.

Details start at timeframe 8.37

[![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f1a0a4616d1e234dcb351414bc6fe8265e8650d6.jpeg "ESP32-Cam Basics (for timelapse, pet surveillance, nesting boxes, front door cameras etc.)") ](https://www.youtube.com/watch?v=OeogSzLhRLk&t=517s)

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [20 July 2021 12:57 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/48 "2021-07-20T12:57:40Z")

</div>

Hello,  
I just received my mini ESP32-Cam.  
This subject pushed me a little, curiosity, well you certainly know 😉  
Out of curiosity, what sketch did you use to flash the FW?  
I found this [one](https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Camera/CameraWebServer). Have you seen any other more efficient or simpler or of higher quality?  
I plan to do image detection as you did before.  
Thank you for your interest

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [20 July 2021 14:59 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/49 "2021-07-20T14:59:05Z")

</div>

I had a very fast browse, have you set it up as a camera trap, movement detection?

---

<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:** [20 July 2021 15:40 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/50 "2021-07-20T15:40:30Z")

</div>

Jean-Luc,

I used the one below since it allows you to connect and view the camera from multiple views at the same time (limit is 10). The original can only support one connection. I wanted the device to act as a camera, no additional menues etc. So far it works very well

> **[Multi-Client MJPEG Streaming From ESP32](https://www.hackster.io/anatoli-arkhipenko/multi-client-mjpeg-streaming-from-esp32-47768f)**
>
> You can now stream video from ESP32 devices to multiple clients, including previously problematic VLC and Blynk video widget. By Anatoli Arkhipenko.

---

<div class="post-metadata">

**Author:** ![Jean-Luc](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jean-luc/32/89996_2.png) [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Post date:** [20 July 2021 16:02 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/51 "2021-07-20T16:02:23Z")

</div>

Very good point, indeed,  
a connection to the NAS, one to the home automation and one to the phone.  
Min 3 connections.  
So thanks for this important info.  
I will read (rather translate the doc) and use IDE to flash all this.

---

<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:** [18 September 2021 16:03 UTC](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165/52 "2021-09-18T16:03:18Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/detecting-objects-using-esp32-cam-and-node-red/47165.md?page=2)
