Skip to content

mathieudutour/autodraw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

🎨 Autodraw API wrapper

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published