node-red-contrib-opencv 0.1.2

Node-RED node for OpenCV

npm install node-red-contrib-opencv

Node-RED node for OpenCV

This node can detect face, eye, eyeglasses, full body and car from image using OpenCV. Image file buffer and file path are supported as input message. JSON (coordinates and size of object) and image buffer (original image and red circles of objects) can be selected as output message.

How to Install

Only Ubuntu and Raspbian environments are supported.

(1) Install OpenCV

  • sudo apt-get install libopencv-dev

(2) Install OpenCV node

  • cd ~/.node-red
  • npm install node-red-contrib-opencv

(Node installation function on Node-RED palette is not recommended because it's difficult to see installation progress which takes long time like this node)

(3) Run Node-RED

  • node-red

Creating sample flow

file inject node in node-red-contrib-browser-utils is useful to test OpenCV node. The simplest flow contains file inject node, OpenCV node and debug node as follow.


Node property

You can select a detector and output method on the node property.


Run the flow

After clicking the button of file inject node, you can upload image file and OpenCV node will analyze it. Finally debug tab show the coordinate and size of object. If you select "Image buffer" as output format in the OpenCV node, output image will have red circles of objects as follows.


Flow data


Node Info

Version: 0.1.2
Updated 8 months ago
License: Apache-2.0


0 in the last day
26 in the last week
164 in the last month


  • opencv


  • node-red
  • opencv
  • image recognition
  • computer vision


  • zuhito