Skip to content

A Python script that detects labels in images from a bucket in S3 using Amazon Rekognition

Notifications You must be signed in to change notification settings

AlvaroRaul7/aws-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requerimientos para el desafío

Claves de acceso para configurar AWS CLI

ID de clave de acceso
AKIASFSTGGZK37LGLRRP

Clave de acceso secreta
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

Region
us-east-1

Probar el challenge de forma local (Opcional)

Desafío

  • Editar el archivo amazon_rekognition.py con la url de la imagen que se encuentra en la variable test_challenge_url

  • Subir el modulo amazon_rekognition.py a AWS Lambda con el nombre aws-<nombre>-<apellido>

    • El handler para la función Lambda es amazon_rekognition.lambda_handler
    • El rol para crear la función Lambda es arn:aws:iam::149424584277:role/AwsEcuadorSupport
    • El runtime de la funcion Lambda es Python 3.8
  • Invocar a la funcion Lambda desde la terminal de comandos

  • Imprimir el response en la terminal de comandos

Se deberia esperar el siguiente response segun la imagen:


{"statusCode": 200, "headers": {"Content-Type": "application/json"}, "body": "{\"Number of labels found\": 15, \"Labels for the image \": [\"Outer Space\", \"Astronomy\", \"Person\", \"Baby\", \"Wheel\", \"Machine\", \"Bicycle\", \"Vehicle\", \"Transportation\", \"Planet\", \"Head\", \"Globe\", \"Outdoors\", \"Night\", \"Nature\"]}"}

Referencias

About

A Python script that detects labels in images from a bucket in S3 using Amazon Rekognition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages