-
Upload the photo of a celebrity.
-
Binary data is POSTed to API Gateway.
-
API Gateway passes the data to Lambda (base64-encoded).
-
Lambda converts it back to binary and invokes RecognizeCelebrities.
-
Name and Confidence are returned back to the client.
-
Create the Lambda role in IAM with these two Managed Policies: AWSLambdaBasicExecutionRole and AmazonRekognitionFullAccess.
-
Create the Lambda function in a language of your choice.
-
Create API Gateway API with a POST method and attach Lambda to it.
- Remember: Content-Type will be image/jpeg.
- Don't forget to enable binary support and CORS.
- Mapping template is: {"picture": "$input.body"}
-
Update the HTML page 'celebrity.html' with your API URL and test.
coming soon...