Good writeup on setting up an image processor using The Serverless Framework, a thing comparable to the aforementioned apex (and with an awfully generic and confusing name imho 😉).
- When a user uploads a file an
ObjectCreatedevent is produced and a Lambda function is invoked.
- The Lambda function calls Amazon Rekognition to detect the faces and emotion of each face in the uploaded image.
- The Lambda function processes the image and persists the image in Amazon S3
Here’s an example set of results:
The code of the Lambda function that calls Amazon Rekognition and processes uploaded images is available on GitHub.