Giter Club home page Giter Club logo

serverless-photo-recognition's Introduction

Serverless Photo Recognition

What is it?

A collection of 3 lambda functions that are invoked by Amazon S3, Amazon API Gateway, and directly (RESTful calls) to analyze uploaded images in S3 with Amazon Rekognition and save picture metadata to ElasticSearch

The Architecture

####Adding an image Adding an image

####Removing an image Remove an image

####Searching images Search images

Tech Stack

Required Tools

AWS Services Involved In This Architecture

AWS Setup

The following command will setup all of the needed resources, as well as print out the sample command that you can run to test your configuration:

# Clone it from github
git clone --depth 1 [email protected]:awslabs/serverless-photo-recognition.git
# Run the installation script
cd serverless-photo-recognition/setup
./setupEnvironment.sh

Running the installation script will modify the /src/main/kotlin/com/budilov/Properties.kt file with the newly-generated values. If you need to rerun the script, just revert the changes (otherwise the script will fail).

It will also create a deletion script under the tmp directory

At the end of the script, you'll see 3 commands that you can run to test out your configuration. Run the command and see the functionality in action:

Upload a picture
aws s3 cp new-york.jpg s3://rekognition-111111111111/usercontent/us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/

Sample search command
curl -X POST -H "Authorization: some-code-generated-here" -H "search-key: building" -H "Cache-Control: no-cache" "https://uniqueprefix.execute-api.us-east-1.amazonaws.com/prod/picture/search/"

Remove the picture
aws s3 rm s3://rekognition-111111111111/usercontent/us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/new-york.jpg

serverless-photo-recognition's People

Contributors

tomhoag avatar vbudilov avatar jpeddicord avatar

Watchers

 avatar James Cloos avatar

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.