Code Monkey home page Code Monkey logo

aws-lambda-rekognition's Introduction

AWS Lambda + Rekognition

This project shows you how to setup an S3 trigger whenever an image is added to an S3 bucket. The trigger will invoke a Lambda function. This Lambda function will call AWS Rekognition, and output the results in the same S3 bucket as a JSON file.

Screenshots

Screenshot Screenshot Screenshot

How to use

  1. Clone this repo!
  2. yarn to build everything.
  3. Go to AWS Console.
  4. Create a Node.js 8.10 Lambda function called "rekognize" with dummy Javascript. When you create the function, add a Role giving full access to CloudWatch, Rekognition, and S3. Bump up the timeout to 30 seconds.
  5. yarn run deploy to deploy our code to this new Lambda function!
  6. Go to your S3 bucket. We are going to add a trigger so that our function fires whenever a png image is added. Click the "Properties" tab. Expand the "Events" panel. Add a Lambda trigger that should look like this: Screenshot
  7. Test it! Upload a png image to the S3 bucket. In a moment or so, you will see a JSON file with the results. Cool!

aws-lambda-rekognition's People

Contributors

bluepeter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aws-lambda-rekognition's Issues

lambda code isn't working

can you please re check the code once again,it isn't uploading file to s3 bucket and it also give error when i test lambda function

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.