node-red-contrib-face-recognition
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -146,4 +146,15 @@ module.exports = function (RED) { | ||
let msg = {} | ||
msg["Matched Faces"] = [] | ||
computeNodesOutput.forEach((output) => { | ||
msg[output.name] = output | ||
output.faces.forEach(face => { | ||
if (face.matchedLabel !== "unknown") { | ||
msg["Matched Faces"].push({ | ||
"name" : face.matchedLabel, | ||
"confidence" : face.matchedDistance | ||
}) | ||
// console.log(face) | ||
} | ||
}) | ||
}) | ||
@@ -150,0 +161,0 @@ |
{ | ||
"name": "node-red-contrib-face-recognition", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "A wrapper node for the epic face-api.js library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,6 +25,11 @@ # node-red-contrib-face-recognition | ||
> Linux users (including raspberry pi) should read [this issue](https://github.com/thebigpotatoe/node-red-contrib-face-recognition/issues/4#issuecomment-579821200) if having issues with installing canvas. | ||
## 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. Simply copy and paste it into Node-Red to use. | ||
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-node-base64 | ||
- node-red-contrib-image-output | ||
![Example](Images/Example%20Flow.PNG) | ||
@@ -31,0 +36,0 @@ |
17403235
1250
132