GithubHelp home page GithubHelp logo

justm0rph3u5 / face_authentication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from srushithr/serverless-face-authentication-app

0.0 1.0 0.0 7.26 MB

A simple serverless app to authenticate/verify user signups using selfies

Python 100.00%

face_authentication's Introduction

Serverless Face Authentication App

A simple serverless app to authenticate/verify user signups using selfies

Description

The BookYourCab team wants to add a new feature by requiring riders to upload a selfie after signing up. This accomplishes a few things:

  1. Prevents the same user from signing up for multiple accounts and prevent from using new-user sign up promotions
  2. Allows users to easily identify the rider during pickup to provide a good customer experience. This also enhances security so bad guys can't spoof to be riders

In this workshop, we will build a serverless face authentication/verification system using the following AWS services - Lambda, Rekognition, Step functions, S3, API Gateway and Dynamo DB.

Implementation Instructions:

  1. Create a Rekognition collection:

Sample CLI command to create a collection in Rekognition:

aws rekognition create-collection --region us-west-2 --collection-id rider-photos

Make sure you chose a region where is Rekognition is supported.

  1. Deploy the CloudFormation template

Use the AWS console or CLI to deploy the CloudFormation template which will create the necessary S3 buckets, lambda functions and IAM roles.

CLI commands to deploy the template:

Create an S3 bucket to upload all the local artifacts:

```aws s3api create-bucket --bucket rekognition-meetup --region us-west-2 --create-bucket-configuration LocationConstraint=us-west-2```

```aws cloudformation package --s3-bucket srushith-codeops-konfhub --region us-west-2 --template ./setup.yaml --output-template-file setup-sam-transformed-us-west-2.yaml```

```aws cloudformation deploy --template-file ./setup-sam-transformed-us-west-1.yaml --stack-name face-authentication-app --capabilities CAPABILITY_IAM --region us-west-1```
  1. Create step functions

Create step functions using the JSON files in the folder step-functions.

References:

  1. https://github.com/aws-samples/aws-serverless-workshops/tree/master/ImageProcessing
  2. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html
  3. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html
  4. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html

face_authentication's People

Contributors

srushithr avatar

Watchers

 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.