I’m Kazuhito Yokoi at OSS Solution Center in Hitachi, Ltd. In the previous article, I introduced how to use Node-RED Operator on RedHat OpenShift. In this article, I will explain the procedures to connect the Node-RED environment with the TensorFlow container on the OpenShift.

Use case

Here, we will use the example of Node-RED flow that realizes the alert system for when driving a car.

Image for post
Image for post

In Japan, cars run on the left side road and cyclists also run on the same side of the car line as you may know. Therefore, drivers always want to avoid collisions with them when the cyclist approaches the car. To support the situation, this system show alert for the driver when the camera detects the scene when the cyclist shows signs to turn right side using the human pose estimation model. …

I’m Kazuhito Yokoi at OSS Solution Center in Hitachi, Ltd. In this article, I will explain how to use Node-RED on OpenShift. Thanks to the OpenShift web console, users can easily deploy the Node-RED environment without command-line operations even if they are beginners. Recently, the Node-RED operator has been available on the OpenShift catalog as below.

Image for post
Image for post
RedHat ecosystem catalog

As of December 2020, there are four items in the catalog. Let’s deploy “Node-RED operator” from them to the OpenShift environment on the Katacoda.

(1) Access OpenShift web console

Firstly, access the OpenShift Playground 4.6 via the following URL. This playground environment is available for 60 minutes only because it is the free environment to try the OpenShift. …

In this post, I will explain how to use the “Node generator” which makes it easy to create Node-RED nodes.

What is the Node generator?
Node generator is a command-line tool that can create custom nodes automatically. This tool provides functionality to generate the code of Node-RED node from Open API document like Swagger Codegen. In addition to the Open API document, it also supports JavaScript code in a function node as a source file. Using this tool, Node developers can easily develop and publish their custom nodes on the flow library to share them with other Node-RED users.

Image for post
Image for post

After Hitachi research & development group released this tool as open-source software, it has been managed as the sub-project of the Node-RED project under the OpenJS Foundation (Linux Foundation). Currently, the Node-RED development community has enhanced the functionality of this tool in a cooperative way. …

In this post, I will introduce how to use image recognition using TensorFlow.js and Node-RED. Node-RED flow can answer what image contains (For example, person, dog, car and bottle) using TensorFlow.js.

Image for post
Image for post

Settings in Node-RED
To use Tensorflow.js easily, I will use the TensorFlow.js module which contains the learned model from the function node in Node-RED. When we use 3rd party npm modules in function nodes, the document, “Loading additional modules” section in the official Node-RED website will be useful.

(1) Install npm module
After opening the command prompt, I will install the external npm module, “max-image-segmenter” on the home directory of Node-RED (“C:\Users\< User name >\.node-red” …


Kazuhito Yokoi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store