How to Use Amazon Rekognition to Detect Objects in an Image from Lambda
You've got an S3 bucket filling up with user-uploaded photos, and someone asks: 'Can we auto-tag these with what's actually in them?' That's exactly the problem Amazon Rekognition's DetectLabels API solves — and wiring it to a Lambda function triggered by S3 uploads is the most common production pattern for this use case. TL;DR: Amazon Rekognition DetectLabels via Lambda Step What Happens 1. Image uploaded to S3 S3 event notification triggers Lambda 2. Lambda invokes DetectLabels Passes S3 bucket + object key to Rekognition 3. Rekognition returns labels JSON array with label names and confidence scores 4. Lambda stores results Write tags to DynamoDB, S3 metadata, or downstream system How Amazon Rekognition DetectLabels Works DetectLabels analyzes an image and returns a list of labels — objects, scenes, concepts, and activities detected in the image — each with a confidence ...