# ESP32 CAM and facial recognition in node red

**URL:** <https://discourse.nodered.org/t/esp32-cam-and-facial-recognition-in-node-red/54338>\
**Category:** General\
**Tags:** http-request\
**Created:** [26 November 2021 14:15 UTC](https://discourse.nodered.org/t/esp32-cam-and-facial-recognition-in-node-red/54338 "2021-11-26T14:15:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rt54321](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@rt54321](https://discourse.nodered.org/u/rt54321)\
**Post date:** [26 November 2021 14:15 UTC](https://discourse.nodered.org/t/esp32-cam-and-facial-recognition-in-node-red/54338/1 "2021-11-26T14:15:35Z")

</div>

Greetings All! I know that there are many resources about facial recognition using the RPi camera. I'm using the ESP camera, and I'm trying to do an image capture for comparison.

Steps:

1. Get the ESP32 CAM node up and running \<-- WORKS, I DO see a valid snapshot when I browse to [http://192.168.1.115/cam-hi.jpg](http://192.168.1.115/cam-hi.jpg) (the IP address of my ESP32 cam)

2. In Node Red, use an inject node to trigger an http GET request, where the URL is the ESP32 IP address in step 1 \<--Works: when I use a debug node, I DO see the output of the "http request" node after I trigger it. The output looks like garble, but it IS there.

3. Now that I have a response from the GET request, how do I "convert" this response into an actual picture?

--\> Overall, I plan on using this picture to compare it to a known database of pictures for facial recognition (as in, "does this snapshot match anyone in our database? YES or NO").

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![rt54321](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@rt54321](https://discourse.nodered.org/u/rt54321)\
**Post date:** [26 November 2021 14:56 UTC](https://discourse.nodered.org/t/esp32-cam-and-facial-recognition-in-node-red/54338/2 "2021-11-26T14:56:12Z")

</div>

Success! Sorry to bother everyone with this question - I got a picture working!

For anyone else with this issue, my problem was in the "http request" node. The "return" type should be set to "a binary buffer". After I did this, the "Image" node outputs a still shot from the camera every time the "http request" node returns something.

---

<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:** [27 November 2021 09:02 UTC](https://discourse.nodered.org/t/esp32-cam-and-facial-recognition-in-node-red/54338/3 "2021-11-27T09:02:16Z")

</div>

So the next step: [node-red-contrib-face-recognition (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-face-recognition)

PS: check the platform requirements first

---

<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:** [11 December 2021 09:03 UTC](https://discourse.nodered.org/t/esp32-cam-and-facial-recognition-in-node-red/54338/4 "2021-12-11T09:03:02Z")

</div>

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