Skip to content

nuusk/who-is-it

Repository files navigation

Who is it

status

Find out what famous people are on your photos

Stack:

CI/CD

Endpoints

Upload your images using to /dev/celeb endpoint

POST /celeb

  • uploads image to the s3 and runs the celebrity recognition event. Body structure:
    {
      imageBase64: string,
      fileName: string,
      extension: string
     }
    
  • this request will return an url to an object created in the s3 that will be used later
  • related serverless functions:
    • image-upload - executed by this request image-upload
    • image-created - event triggered by sqs image-created

GET /celeb

  • returns list of celebrities recognized from your photos. Each celebrity contains an array of photos representing him (that were uploaded to s3)
  • related serverless functions:
    • get-celebs - executed by this request get-celebs

Demo

  1. Add many photos asynchronously
./scripts/batch_post_directory.sh ${API}/celeb ${PHOTOS_LIBRARY}

for the sake of testing, you can use ./images as your PHOTO_LIBRARY

1.1. Observe how SQS allows to queue uploading images to the dynamodb

sqs-dynamodb

1.2. You can also see the queued messages in SQS console

sqs-messages

  1. List celebrities found in your library
curl ${API}/celeb | jq

get-celebs

About

experimenting with lambda and rekognition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published