Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mathieudutour/autodraw

:art: Autodraw API wrapper
https://github.com/mathieudutour/autodraw

api autodraw wrapper

Last synced: 16 days ago
JSON representation

:art: Autodraw API wrapper

Awesome Lists containing this project

README

        

# Autodraw API wrapper

## Installation

```
npm install --save autodraw
```

## Usage

```js
const autodraw = require('autodraw')

const shape1 = [
{
x: 10,
y: 5
},
{
x: 40,
y: 10
}
]

const shapes = [
shape1
]

autodraw(shapes).then(results => {
/* array of recognized objects:
* [{
* name,
* confidence (closer to 0 == more confident),
* url (url to a svg representing the object),
* url_variant_1,
* url_variant_2
* }]
*/
})
```

## Licence

MIT

## Credits

A.I. Powerhouse provided by autodraw.com and A.I. Experiments by Google.
This project is just a small wrapper to use the experiment programmatically.