Skip to content

This project is a class that leverages the capabilities of Amazon Rekognition and Amazon Translate to provide image labeling and translation functionality. It accepts an image URL as input, performs label detection and translation, and returns the results in a JSON format that includes the labels and their confidence levels.

Notifications You must be signed in to change notification settings

pedrokaroth/image-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Analyzer

This is an simple exemple of two aws services (rekognition and translate).The service will analyze the submitted url with aws rekognition and translated it.

Usage

to use the this service you will need an account on aws and serverless framework.

Deployment

In order to deploy the example, you need to run the following command:

$ sls deploy

After running deploy, you should see output similar to:

Deploying aws-node-project to stage dev (us-east-1)

✔ Service deployed to stack aws-node-project-dev (112s)

functions:
  analyze: image-analyzer-dev-analyze (15 MB)

Invocation

After successful deployment, you can invoke the deployed function by using the following command:

sls invoke --function analyze -p request.json

Which should result in response similar to the following:

{
    "statusCode": 200,
    "body": "[\"99.33 de ser Cachorro\",\"99.33 de ser Animal de estimação\",\"99.33 de ser Canino\",\"99.33 de ser Mamífero\",\"91.36 de ser Pug\"]"
}

Local development

You can invoke your function locally by using the following command:

sls invoke local --function analyze -p request.json

Which should result in response similar to the following:

{
    "statusCode": 200,
    "body": "{\n  \"message\": \"Go Serverless v3.0! Your function executed successfully!\",\n  \"input\": \"\"\n}"
}

About

This project is a class that leverages the capabilities of Amazon Rekognition and Amazon Translate to provide image labeling and translation functionality. It accepts an image URL as input, performs label detection and translation, and returns the results in a JSON format that includes the labels and their confidence levels.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published