hubot-rekognition
v0.1.1
Published
Give Hubot an image and it'll tell you what it sees in the image.
Downloads
4
Maintainers
Readme
hubot-rekognition
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 toHUBOT_AWS_ACCESS_KEY_ID
- an AWS access id with access to S3 and RekognitionHUBOT_AWS_SECRET_ACCESS_KEY
- a matching AWS secret keyHUBOT_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