hubot-rekognition

0.1.1 • Public • Published

hubot-rekognition Build Status

A hubot script that will run an image through the AWS Rekognition detectLabels function.

See src/rekognition.coffee for full documentation.

Installation

In your hubot project repo, run:

npm install hubot-rekognition --save

Then add hubot-rekognition to your external-scripts.json:

["hubot-rekognition"]

Configuration

hubot-rekognition requires a bit of configuration in the form of environment variables to get everything working:

  • HUBOT_S3_BUCKET - the S3 bucket you'd like to upload images to
  • HUBOT_AWS_ACCESS_KEY_ID - an AWS access id with access to S3 and Rekognition
  • HUBOT_AWS_SECRET_ACCESS_KEY - a matching AWS secret key
  • HUBOT_AWS_REGION - the AWS region you'd like to use. eg: 'us-west-2'

Sample Interaction

user1>> @hubot What do you see? <picture>
hubot>> I think I see: Electronics (80.4%), Monitor (80.4%), Screen (80.4%)...

TODO

  • [ ] Remove dependency on knox
  • [ ] Create more meaningful tests
  • [ ] Experiment with Bytes instead of S3Bucket

Package Sidebar

Install

npm i hubot-rekognition

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • lanyonm