Git Product home page Git Product logo

node-red-contrib-face-recognition's Introduction

node-red-contrib-face-recognition

GitHub release GitHub release GitHub release

Version 2 Out Now!

Version 2.0.0 is now officially released brining performance increases, better useability, and more support across systems. Testing is still ongoing, so if you come across any bugs please open an issue or a discussion here.

Overview

This node aims to wrap the epic Face-API.js library from justadudewhohacks into a simple to import and use node in Node-Red. If you like anything in this repo be sure to also check out the original.

bbt1

Usage of this node is designed to be very easy while allowing the user to choose any number of options exposed by the original face-api.js module. These are currently;

  • Face detection
  • Facial Landmarks
  • Facial Expressions
  • Age and Gender Predictions
  • Facial Recognition

This module also utilizes the child_process module of Node.js to offload the complex calculations required to a separate thread. In turn, the offloaded task will not block the main event loop and allow Node-Red to continue other tasks. Each input node spawns a new fork, which will consume memory, so this may want to be limited on resource restricted environments.

Installation

From your .node-red directory, you can run;

npm install node-red-contrib-face-recognition

or you can go to the pallette manager in Node-Red and find node-red-contrib-face-recognition in the install tab.

Canvas

Canvas will be installed correctly providing when using either installation method, however the required packages need to be installed on the system. These are as follows for several common OS's;

Windows

No requirements

Mac

¯\_(ツ)_/¯

Linux (Debian Based)

apt-get install -y python \
    g++ \
    build-essential \
    libcairo2-dev \
    libjpeg-dev

Official Docker Image

apk add python \
    g++ \
    build-base \
    cairo-dev \
    jpeg-dev \
    pango-dev \
    musl-dev \
    giflib-dev \
    pixman-dev \
    pangomm-dev \
    libjpeg-turbo-dev \
    freetype-dev

TensorFlow for Node.js (Optional)

You can also optionally install TensorFlow for Node.js to make this package run faster. If you do not, the node will still run albeit much slower. To install TensorFlow navigate to your .node-red folder and run the following command. This will install TensorFlow in your Node-Red directory for use by the node.

npm install @tensorflow/tfjs-node

There are known issues with the working combinations version of Node.js, @tensorflow/tfjs-node and face-api.js. At the time of writing this, these were found to be;

  • Node.js: 10.16.3
  • @tensorflow/tfjs-node: 1.2.11
  • face-api.js: 0.21.0

Please install these to gain the speed of the tf c++ backend and keep up to date on the face-api.js GitHib page for any errors relating to this.

tfjs-node is unfortunatley not supported on all OS's and all architectures. Below is a table of where they are supported;

OS x86 armv7 arm64v8
Windows yes - -
Mac ? - ?
Linux (Debian based) yes no yes
Official Docker Image no no no
Unofficial Docker Image yes! soon yes!

Example Flow

As an example on how to use the node, below is a flow that grabs an image from the internet and runs inference over it. Copy and paste it into Node-Red to use, but make sure to install the following nodes from the pallet manager;

  • node-red-contrib-image-output

Note: In order to recognise faces you will need to add the recognise config nodes yourself as these cannot be exported across instances.

Example

[{"id":"c08c9d7b.c2377","type":"image","z":"4eb4b426.c9cfcc","name":"","width":"320","data":"payload","dataType":"msg","thumbnail":false,"pass":false,"outputs":0,"x":120,"y":100,"wires":[]},{"id":"461f82e0.80fc8c","type":"image","z":"4eb4b426.c9cfcc","name":"","width":"640","data":"payload.labelled_img","dataType":"msg","thumbnail":false,"pass":false,"outputs":0,"x":440,"y":100,"wires":[]},{"id":"453418e3.520f28","type":"face-api-input","z":"4eb4b426.c9cfcc","name":"TBBT Recognition","model":"SSD","confidence":50,"input_size":"128","landmarks":false,"expressions":true,"age_gender":true,"descriptors":true,"match_metric":"Mean Squared Error","match_confidence":"2500","recognise_nodes":["a88d60e.9ca13a","5d6c06f7.11d2c8","71bfb897.3b8ef8","e09c0d5.ca5acf","dc3c3afc.04e708","eb7ecb3c.a1cbb8","b4b62a6d.fc5c18"],"recognise_node_editor":"b4b62a6d.fc5c18","x":450,"y":40,"wires":[["461f82e0.80fc8c","4d4a98a1.c04008"]]},{"id":"d7b82011.6cfd1","type":"http request","z":"4eb4b426.c9cfcc","name":"TBBT","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.etonline.com/sites/default/files/images/2019-05/bigbangtheory.jpg","tls":"","persist":false,"proxy":"","authType":"","x":230,"y":40,"wires":[["453418e3.520f28","c08c9d7b.c2377"]]},{"id":"492a9534.4d694c","type":"inject","z":"4eb4b426.c9cfcc","name":"","props":[{"p":"payload","v":"","vt":"str"},{"p":"topic","v":"","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":90,"y":40,"wires":[["d7b82011.6cfd1"]]},{"id":"4d4a98a1.c04008","type":"debug","z":"4eb4b426.c9cfcc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":650,"y":40,"wires":[]},{"id":"b4b62a6d.fc5c18","type":"face-api-recognise","name":"Leonard"}]

Included Nodes

This module comes with two nodes; the face-api-input node and face-api-recognise node.

Input node

Input Node

Description

The face-api-input node is the main node that runs inference over an input image and optionally utilised recognition nodes to recognise faces. Each input node spawns a fork which is a seperate nodejs instance to run the recognition on to avoid blocking the main node-red event loop. This takes resources, be be conservative on resource constrained environments.

General Settings

  • Name: The name of this specific node. Useful to change when you have multiple config nodes and need to know the difference between them. (defaults to "face-api-input")

Detection Settings

  • Detection Type: The detection type to use. This is either SSD or Yolo, as MTCNN is not currently supported. (Defaults to SSD)

  • Input Size: The input size of the Yolo algorithm. This option is only available when using Yolo as the type. (Defaults to 416)

  • Detection Confidence: The minimum confidence score that each detected face much be above to be counted as a face. This option is available for both SSD and Yolo. (Defaults to 50%, Limited between 0 and 100)

  • Facial Landmarks: Select this if you would like to add facial landmarks of each face to the output. (Defaults to false)

  • Facial Expressions: Select this if you would like to add a prediction of facial expressions of each face to the output. (Defaults to false)

  • Age and Gender: Select this if you would like to add a prediction of the age and gender of each face to the output. (Defaults to false)

  • Descriptors: Select this if you would like to output the computed descriptors for each found face. (Defaults to false)

Recognition Settings

  • Recognition Metric: Select the type of recognition metric to use when comparing faces with the recognition option. This is option is only shown when the recognise option is selected. (Defaults to Mean Squared Error)

  • Matched Confidence: This is the minimum cutoff value for recognition for each of the metrics. Keep in mind that the different metrics will produce different ranges of values for recognition. This is option is only shown when the recognise option is selected. (Typical cutoffs are around 2000)

  • Recognise Nodes List: A list of recognition nodes to run recognition against for each face found in an input image. Simply add and remove as many as required, there are no limits

  • Add/Edit Recognise Nodes: Use this dropdown menu to add and edit new recognise nodes which you can then add to the input node list. Keep in mimd you will have to deploy the node before being able to find it in the list.

Compute Node

Input Node

  • Name: The name of this specific face to recognise. (defaults to "Unknown")

  • Add Images: Use this button to add images to create a descriptors from. These descriptors will then be used in the input node to predict against an image. When adding images, the descriptors will take a while to compute.

  • Remove Descriptors: Use this button to remove the currently stored descriptors. This is irreversible.

Adding a face descriptor

In order to use the facial recognition, facial descriptors must be calculated first to allow a comparison between them and any input image. To do this, create a recognition node through the input node menu, then click Add Images. Once selected all images will be computed immediately in the background.

These descriptors are then saved to disk allowing it to survive restarts of Node-Red. The saved file will then be loaded on startup of Node-Red. Saving the descriptor is also safer than saving an image if your Node-Red instance is online as no data about the original image is stored.

The Recognition Metric

The original Face-api.js library only supports the Euclidean distance method of comparison between descriptors when matching faces. To extend this, this node also supports 3 more type of metrics. These are; Manhattan, Chebyshev, and Mean Squared Error.

The outputs of these metrics from the node are all mapped roughly to the same output values of around 0 to 10000. This was to make it easier to compare the usefulness of each and allow the user to set a cutoff value within a similar range for each metric.

From testing, Mean Squared Error gives the highest contrasting results from known to unknown faces. If you have another metric you feel may be useful, feel free to submit a pull request or create a discussion as I can now implement it along with the others.

Contributing

If you like this node and want to contribute feel free to fork this repo and make a pull request. New features and suggestions are welcome, and there are several features I would like to implement, but lack the Javascript knowledge in Node.js. These are;

  • Help on implementing tfjs-node on all platforms.
  • General code improvements and clean ups

node-red-contrib-face-recognition's People

Contributors

dependabot[bot] avatar thebigpotatoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-red-contrib-face-recognition's Issues

Error to install

Hello,

I have tried to install it from Node red, but I got following error message:

021-06-22T17:53:32.090Z Install : node-red-contrib-face-recognition 2.0.3

2021-06-22T17:53:32.825Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production [email protected]
2021-06-22T17:53:45.352Z [out]
2021-06-22T17:53:45.352Z [out] > [email protected] install /home/pi/.node-red/node_modules/canvas
2021-06-22T17:53:45.352Z [out] > node-pre-gyp install --fallback-to-build
2021-06-22T17:53:45.352Z [out]
2021-06-22T17:53:46.295Z [err] node-pre-gyp
2021-06-22T17:53:46.296Z [err] ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-linux-glibc-arm.tar.gz

Ig I test URL https://github.com/Automattic/node-canvas/releases/download/v2.8.0/canvas-v2.8.0-node-v83-linux-glibc-arm.tar.gz, I got erroer message "Not found"

Thanks in advanced

Other msg value not sent over

other msg field that has been set before face detection is not send
or is there any configuration that I miss.
Thankyou

UnhandledPromiseRejectionWarning - in newer tfjs version 1.7.2

UnhandledPromiseRejectionWarning Error in newer tfjs 1.7.2 version.

27 Apr 17:26:22 - [error] (node:2744) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

comment: latest Tensorflow,js is now fixed and working fine with other node-red nodes,
like: node-red-contrib-tfjs-coco-ssd

bounding box coordinates

Hi,
Healthy new year !
I installed node-red-contrib-face-recognition without problems on a Raspbery Pi4.

I found the bounding box surrounding the facial landmarks: payload.face_recon.faces[0].alignedRect._box
But I would need the coordinated for the larger bounding box covering the whole face - (as shown in the preview (box with blue lines)

Any help very appreciated !

Best regards,
Wolfgang

Image is not displaying through the image output node

Hi again :-)
Since version 1.3.1, I get "Invalid image" error message,
when trying to display image through the image output node.

image

I tried to use the "msg.payload=msg.image" or even connect it directly to the the image output node - but no luck.

Appreciate the effort. Thanks!

Text showing up as boxes on result image

Hi there!

I just tried this repo after talking with the OP on reddit.
But it seems like the results are coming through with a weird encoding (Or so it looks).

Is there anything that I could do to fix this?

image

Compatibility issue witn Node-Red V1.1.2

Thanks again for the hard work and the late nights :)

The latest Node-Red version 1.1.2 is conficting with [email protected]
Here's the error message:

Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: C:\Users*username*.node-red\node_modules@tensorflow\tfjs-node\lib\napi-v5\tfjs_binding.node. Please run command 'npm rebuild @tensorflow/tfjs-node build-addon-from-source' to rebuild the native addon module. If you have problem with building the addon module, please check https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md or file an issue. (line:10)

Thanks!

Can't install at Raspberry Pi 4

maybe canvas can not support arm CPU ?

.921Z Install : node-red-contrib-face-recognition 1.3.2

2019-12-26T20:06:46.105Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2019-12-26T20:06:56.979Z [out]
2019-12-26T20:06:56.979Z [out] > [email protected] install /home/pi/.node-red/node_modules/canvas
2019-12-26T20:06:56.979Z [out] > node-pre-gyp install --fallback-to-build
2019-12-26T20:06:56.979Z [out]
2019-12-26T20:06:57.435Z [err] node-pre-gyp
2019-12-26T20:06:57.439Z [err]
2019-12-26T20:06:57.439Z [err] WARN
2019-12-26T20:06:57.439Z [err]
2019-12-26T20:06:57.439Z [err] Using needle for node-pre-gyp https download
2019-12-26T20:06:57.440Z [err]
2019-12-26T20:06:58.469Z [err] node-pre-gyp
2019-12-26T20:06:58.469Z [err] WARN Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.6.1/canvas-v2.6.1-node-v64-linux-glibc-arm.tar.gz
2019-12-26T20:06:58.470Z [err] node-pre-gyp WARN
2019-12-26T20:06:58.470Z [err] Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
2019-12-26T20:07:00.999Z [err] Package pixman-1 was not found in the pkg-config search path.
2019-12-26T20:07:00.999Z [err] Perhaps you should add the directory containing pixman-1.pc' 2019-12-26T20:07:00.999Z [err] to the PKG_CONFIG_PATH environment variable 2019-12-26T20:07:00.999Z [err] No package 'pixman-1' found 2019-12-26T20:07:00.999Z [err] gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp 2019-12-26T20:07:01.016Z [err] gyp 2019-12-26T20:07:01.017Z [err] 2019-12-26T20:07:01.017Z [err] ERR! configure error 2019-12-26T20:07:01.017Z [err] 2019-12-26T20:07:01.018Z [err] gyp 2019-12-26T20:07:01.018Z [err] ERR! stack 2019-12-26T20:07:01.019Z [err] Error: gypfailed with exit code: 1 2019-12-26T20:07:01.019Z [err] gyp ERR! 2019-12-26T20:07:01.019Z [err] stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) 2019-12-26T20:07:01.019Z [err] gyp ERR! 2019-12-26T20:07:01.019Z [err] stack at ChildProcess.emit (events.js:198:13) 2019-12-26T20:07:01.019Z [err] gyp 2019-12-26T20:07:01.019Z [err] ERR! 2019-12-26T20:07:01.019Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) 2019-12-26T20:07:01.020Z [err] gyp 2019-12-26T20:07:01.020Z [err] ERR! System Linux 4.19.75-v7l+ 2019-12-26T20:07:01.020Z [err] gyp 2019-12-26T20:07:01.020Z [err] ERR! command 2019-12-26T20:07:01.020Z [err] "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/home/pi/.node-red/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/home/pi/.node-red/node_modules/canvas/build/Release" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v64" 2019-12-26T20:07:01.020Z [err] gyp ERR! 2019-12-26T20:07:01.020Z [err] cwd /home/pi/.node-red/node_modules/canvas 2019-12-26T20:07:01.021Z [err] gyp 2019-12-26T20:07:01.021Z [err] ERR! node -v 2019-12-26T20:07:01.021Z [err] v10.18.0 2019-12-26T20:07:01.021Z [err] gyp 2019-12-26T20:07:01.021Z [err] ERR! 2019-12-26T20:07:01.021Z [err] node-gyp -v v5.0.5 2019-12-26T20:07:01.021Z [err] gyp 2019-12-26T20:07:01.021Z [err] ERR! not ok 2019-12-26T20:07:01.021Z [err] 2019-12-26T20:07:01.028Z [err] node-pre-gyp 2019-12-26T20:07:01.028Z [err] ERR! build error 2019-12-26T20:07:01.029Z [err] node-pre-gyp 2019-12-26T20:07:01.029Z [err] ERR! stack 2019-12-26T20:07:01.029Z [err] Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/.node-red/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/pi/.node-red/node_modules/canvas/build/Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1) 2019-12-26T20:07:01.029Z [err] node-pre-gyp 2019-12-26T20:07:01.029Z [err] ERR! stack at ChildProcess.<anonymous> (/home/pi/.node-red/node_modules/node-pre-gyp/lib/util/compile.js:83:29) 2019-12-26T20:07:01.029Z [err] node-pre-gyp ERR! 2019-12-26T20:07:01.029Z [err] stack at ChildProcess.emit (events.js:198:13) 2019-12-26T20:07:01.029Z [err] node-pre-gyp ERR! 2019-12-26T20:07:01.030Z [err] stack at maybeClose (internal/child_process.js:982:16) 2019-12-26T20:07:01.030Z [err] node-pre-gyp ERR! 2019-12-26T20:07:01.030Z [err] stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 2019-12-26T20:07:01.031Z [err] node-pre-gyp 2019-12-26T20:07:01.031Z [err] ERR! System Linux 4.19.75-v7l+ 2019-12-26T20:07:01.031Z [err] node-pre-gyp 2019-12-26T20:07:01.031Z [err] ERR! command 2019-12-26T20:07:01.031Z [err] "/usr/bin/node" "/home/pi/.node-red/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" 2019-12-26T20:07:01.031Z [err] node-pre-gyp ERR! 2019-12-26T20:07:01.031Z [err] cwd 2019-12-26T20:07:01.031Z [err] /home/pi/.node-red/node_modules/canvas 2019-12-26T20:07:01.031Z [err] node-pre-gyp 2019-12-26T20:07:01.031Z [err] ERR! 2019-12-26T20:07:01.032Z [err] node -v v10.18.0 2019-12-26T20:07:01.032Z [err] node-pre-gyp 2019-12-26T20:07:01.032Z [err] ERR! node-pre-gyp -v 2019-12-26T20:07:01.032Z [err] v0.11.0 2019-12-26T20:07:01.032Z [err] node-pre-gyp 2019-12-26T20:07:01.032Z [err] ERR! not ok 2019-12-26T20:07:01.032Z [err] 2019-12-26T20:07:01.033Z [out] Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/home/pi/.node-red/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/home/pi/.node-red/node_modules/canvas/build/Release --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1) 2019-12-26T20:07:01.723Z [err] npm 2019-12-26T20:07:01.723Z [err] ERR! code ELIFECYCLE 2019-12-26T20:07:01.724Z [err] npm 2019-12-26T20:07:01.724Z [err] ERR! errno 2019-12-26T20:07:01.725Z [err] 1 2019-12-26T20:07:01.730Z [err] npm 2019-12-26T20:07:01.732Z [err] ERR! [email protected] install:node-pre-gyp install --fallback-to-build`
2019-12-26T20:07:01.732Z [err] npm ERR! Exit status 1
2019-12-26T20:07:01.732Z [err] npm ERR!
2019-12-26T20:07:01.732Z [err] npm ERR! Failed at the [email protected] install script.
2019-12-26T20:07:01.732Z [err] npm ERR!
2019-12-26T20:07:01.732Z [err] This is probably not a problem with npm. There is likely additional logging output above.
2019-12-26T20:07:01.791Z [err]
2019-12-26T20:07:01.792Z [err] npm ERR! A complete log of this run can be found in:
2019-12-26T20:07:01.792Z [err] npm ERR! /home/pi/.npm/_logs/2019-12-26T20_07_01_770Z-debug.log
2019-12-26T20:07:01.823Z rc=1

Not really an issue. Questions...

Sorry to use an issue post to ask questions. I did not know how else to do it.

I have been away form the facial recognition process since figuring out the Canvas install error from a year ago already. LIfe just got in the way. :)

2 questions:

  1. I see that it has been a little over a year since any updates. I assume for you too that life got in the way? Do you have any plans to continue the maintenance on this project?
  2. I would like so spawn a child process on another machine. Actually, a Jetson Nano. It was not evident to me how I could do this if I even could. Thoughts?

Thanks

Joe

Canvas Install Errors

I am getting canvas install errors when the install tries to create some sub directories under node_modules. I am getting permission errors.

I ran the install with sudo. I also tried creating all of the canvas directories ahead of time but still failing.

Joe

fresh install - no fonts on detection

installed all on fresh ubuntu 20.40 lts server,
with node-red raspian script and face-detection with command-line like here stated,
but fonts on detected image missing.
what to do? thanx for help...

image

(by the way: i had to delete the image node and drag it new onto the flow to get it work)

How do you "see" who is whom in the pictures?

I now have this working using a windows computer, and that's strange in it's own way, BUT....

If I teach the node that Sheldon is actually Sheldon and Lennard is Lennard, the node "just" puts out information which leaves me with no clue what so ever.

Another test I did was, feed the flow with the picture I used for Sheldon as the descriptor, while passing this though with both Lennard and Sheldon as possible in the picture.

Does this make sence?

Picture-in of Sheldon - 2 possible candidates (Sheldon & Lennard) - Node puts out outcome for both possibilities :(

Canvas Install Errors on docker

I have the same problem as [https://github.com//issues/4](this issue).

I tried the root solution but when I connect inside container with root and install.
I get the same error :

bash-5.0# whoami
root
bash-5.0# cd /data/
bash-5.0# npm install node-red-contrib-face-recognition

> [email protected] install /data/node_modules/canvas
> node-pre-gyp install --fallback-to-build

sh: node-pre-gyp: Permission denied
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-04-22T15_37_16_722Z-debug.log

Can you help me with this ?
Thanks

Missing/Bad font on output image

Have built a debian based image from the official node-red repo. Everything works fine except the font is missing/bad on the output image. All the data is their correctly looking at the debug output its just not being rendered for the image. What am I missing please?
Screenshot 2024-05-25 160705

Screenshot 2024-05-25 160950

Can possible to recognition from own image

Hello i need a solution to recognition my image from database e.g. i have 5 image name Tony

and i use that 5 image recognition from webcam image or another source image

thank for help

How to train faces for facial recognition.

Hi there! I just started using this node and am having a hard time understanding how to tech faces linked to names for facial recognition.

I have tried adding a descriptor called Sheldon.jpg to detect the face of sheldon in the demo, but it doesn't seem to work.

Am I doing something wrong?

Error to recognition

Hi,
I have this error by using your flow ...

"No descriptor file found for 7c9cec36.49682c"
but I have uploaded the image and It seems that the node don't save the description, in fact in my pc I don't find a file 7c9cec36.49682c.json

Can you help me?

PC with Ubuntu 20.04
Node-RED version: v1.2.9
Node.js version: v14.16.0
Linux 5.4.0-81-generic x64 LE

err

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.