node-red-contrib-cloud-annotations
A Node-RED node for making predictions with Cloud Annotations models.
Install
Run the following command in your Node-RED user directory - typically ~/.node-red
:
npm install node-red-contrib-cloud-annotations
Usage
Feed the model an image and get a list of predictions.
Configuration
Model path
: The path to the Cloud Annotations model.
Input
msg.payload
: The payload can either be a string path to an image file or a buffer object holding the image bytes.
Output
msg.payload
: A list of predictions.
The prediction array varies depending on the type of model loaded.
Object detection model example:
label: 'dog' bbox: 3309269714355469 // x coordinate 2810324728488922 // y coordinate 37456329345703125 // width 5501768910884857 // height score: 092 label: 'cat' bbox: 11689867401123047 // x coordinate 43168705701828003 // y coordinate 4123546600341797 // width 5222745037078857 // height score: 072
Classification model example:
label: 'dog' score: 092 label: 'cat' score: 072