Skip to content

KumudithaSilva/aws-image-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”πŸ§  AWS Rekognition Image Analyzer with Google Colab

This project demonstrates how to securely authenticate with AWS IAM, analyze an image using AWS Rekognition, and extract meaningful labels such as objects and categories .


πŸ“ Project Overview

  • πŸ” Securely input AWS credentials using getpass (hidden input).
  • βœ… Validate IAM session with AWS STS to confirm authorized access.
  • πŸ–ΌοΈ Load an image from a direct URL.
  • πŸ”„ Convert the image into byte format for Rekognition.
  • 🧠 Analyze the image using AWS Rekognition's Label Detection API.
  • πŸ“ Extract and print the top labels with confidence scores.

βœ… Requirements

  • AWS account with Rekognition enabled.
  • IAM user with permissions to use Rekognition and STS.
  • Your Access Key ID and Secret Access Key.
  • A direct URL to an image (must return an image file, not a webpage).

πŸ”§ Installation

Install boto3 in your Colab notebook:

%pip install boto3

⚠️ Important Notes

  • The image URL must be direct to an image file, not a webpage or redirect.
  • Rekognition supports images via:
    • Raw bytes (as shown).
    • Images stored in S3 (using 'S3Object': {Bucket, Name}).
  • Avoid hardcoding AWS credentials; always use secure input methods.
  • Use least privilege IAM policies for security.
  • AWS Rekognition costs apply beyond free tier limits. Monitor usage accordingly.

πŸ“š References & Resources


About

AWS Rekognition in Google Colab to detect labels in images using IAM authentication and byte-based image analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors