# node-red-contrib-cloud-annotations

> Node-RED nodes for making predictions with Cloud Annotations models

Latest version **0.0.2** (published 2020-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-red-contrib-cloud-annotations
pnpm add node-red-contrib-cloud-annotations
yarn add node-red-contrib-cloud-annotations
bun add node-red-contrib-cloud-annotations
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2020-07-23 |
| First published | 2020-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 811.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Nick Bourdakos |
| Maintainers | bourdakos1 |
| Keywords | node-red |

## Links

- npm: https://www.npmjs.com/package/node-red-contrib-cloud-annotations
- Repository: https://github.com/cloud-annotations/node-red-contrib-cloud-annotations
- Issues: https://github.com/cloud-annotations/node-red-contrib-cloud-annotations/issues
- npm.io page: https://npm.io/package/node-red-contrib-cloud-annotations

## Dependencies (1)

- [@cloud-annotations/models-node](https://npm.io/package/@cloud-annotations/models-node.md) ^0.0.3

## Recent versions

- 0.0.2 (latest) — 2020-07-23
- 0.0.1 — 2020-07-23

## README

# node-red-contrib-cloud-annotations

[![NPM version](https://badge.fury.io/js/node-red-contrib-cloud-annotations.svg)](http://www.npmjs.org/package/node-red-contrib-cloud-annotations)
[![Dependencies Status](https://david-dm.org/cloud-annotations/node-red-contrib-cloud-annotations/status.svg)](https://david-dm.org/cloud-annotations/node-red-contrib-cloud-annotations)

A [Node-RED](http://nodered.org) node for making predictions with Cloud Annotations models.

![example](example.png)

## 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:
```js
[{
  label: 'dog',
  bbox: [
    330.9269714355469, // x coordinate
    281.0324728488922, // y coordinate
    374.56329345703125, // width
    550.1768910884857 // height
  ],
  score: 0.92
},
{
  label: 'cat',
  bbox: [
    1168.9867401123047, // x coordinate
    431.68705701828003, // y coordinate
    412.3546600341797, // width
    522.2745037078857 // height
  ],
  score: 0.72
}]
```

Classification model example:
```js
[
  { label: 'dog', score: 0.92 },
  { label: 'cat', score: 0.72 }
]
```

---
_Source: https://npm.io/package/node-red-contrib-cloud-annotations · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
