A Node-RED node to take photos on a Raspberry Pi. This node will only work on an Raspberry Pi with a Raspberry Pi Camera and also utilizes the OpenCV Framework to detect faces.
Run the following command in the root directory of your Node-RED install or home directory (usually ~/.node-red) and will also install needed libraries.
npm install node-red-contrib-camerapi
The detect node also utilizes the OpenCV Framework to give some additional capabilities to the photo processing (detect photo). Therefore you have to install it on your Raspberry Pi. Take a look at this tutorial to see how to install.
Don't forget to enable the Raspberry Pi Camera in raspi-config.
Provides some nodes to take a photo, capture faces and delete them.
This node is to take a photo in a given format directly from the Raspberry Pi Camera. The image of the photo is stored into the file-system and msg.payload will give you the path and the filename including extension to the photo.
If you choose the Face-Detection (based on OpenCV Framework) - you will also get in msg.facescount the number of detected faces and a JSON with the necessary information to the detected face (x,y,x+w,y+h) and if in filemode the name, path and format of the file with the face cut from the image.
Will delete a taken photo from the given path with or without the extracted faces.