Skip to content

notes for processing fotos via opencv on raspberry pi with the raspberry pi camera

Notifications You must be signed in to change notification settings

crismancich/node-red-contrib-camerapi

 
 

Repository files navigation

node-red-contrib-camerapi

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.

Install

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

Additionally you have to install on the Raspberry Pi

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.

Usage

Provides some nodes to take a photo, capture faces and delete them.

TakePhoto

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.

DetectFaces

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.

DeletePhoto

Will delete a taken photo from the given path with or without the extracted faces.

About

notes for processing fotos via opencv on raspberry pi with the raspberry pi camera

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.9%
  • HTML 38.2%
  • Python 17.9%