0.1.0 • Published 7 years ago

autodraw v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Autodraw API wrapper

Installation

npm install --save autodraw

Usage

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