A Flask web app and an event-driven Lambda built on Amazon Rekognition, DynamoDB and S3: live camera or uploaded-photo recognition, person registration, health checks, and a separate used-car price analysis pipeline.
Rekognition can match a face, but a working system needs the pieces around it.
Rekognition returns a face id, not a person. A lookup table is needed to turn a match into a name, and a way to register new people.
Rekognition, S3 and DynamoDB each need exactly the right access. Too broad is unsafe, too narrow fails at runtime.
The project also needed a real pipeline for messy tabular data, so a used-car dataset gets cleaned, analysed and charted.
Two ways in: the web app, and an S3 upload that triggers a Lambda.
The two halves of the repository.
Search faces by image against the Rekognition collection, returning up to 10 matches with confidence and looking up each name in DynamoDB.
A web form indexes a new face in the collection and stores the person's name against the face id.
A /health page reports connectivity to Rekognition, DynamoDB and S3 so a misconfiguration is visible immediately.
Loads a CSV, removes duplicates, fills gaps with median or mode, removes outliers with the 1.5 times IQR rule, then runs statistics and builds charts and a report.
A dedicated logger writes structured activity, error and performance logs.
A Lambda function indexes any image uploaded to S3 and records the name, with no web request involved.
Managed AWS services for the hard parts, plain Python for the rest.
| Layer | Technology | Why |
|---|---|---|
| Face matching | Amazon Rekognition | Managed detection and matching against a collection; no model to train or host. |
| Person records | DynamoDB | Simple key lookup from RekognitionId to a person's name. |
| Image storage | Amazon S3 | Durable storage that can also trigger the indexing Lambda. |
| Web app | Python + Flask | A small server with a few routes and templates. |
| Access | IAM policy | Scoped to specific Rekognition actions, one bucket and the DynamoDB table. |
| Analysis | pandas, Seaborn, Matplotlib | Cleaning, statistics and charts for the car dataset. |
How the pieces were kept separate and safe.
Rekognition stores faces by id, and DynamoDB maps each RekognitionId to a full name. Both the web registration and the Lambda write to the same pair, so recognition works the same regardless of how someone was added.
Detection, database, storage, config and logging are separate modules, and results are returned as dataclasses such as FaceMatch and DetectionResult, so the Flask routes stay short.
Uploaded data is checked first, which avoids paying for and waiting on calls that would fail.
The policy lists the specific Rekognition actions, and limits S3 access to one bucket and its objects, instead of using broad permissions.
Each service module has a health check, and the /health page shows them together.
Cloud problems that only show up when you run against real services.
The check failed with Forbidden on HeadBucket. The cause was a mismatch: the bucket name and region in the code did not match the ones allowed by the IAM policy. Aligning them, and adding HeadBucket to the policy, fixed it, and the steps are documented in the repo.
✓ Code and policy aligned and documentedA person can be added through the web form or by uploading to S3. Both paths index into the same collection and write the same DynamoDB record shape.
✓ One shared identity modelThe car dataset had duplicates, gaps and extreme values. Cleaning is an explicit step: duplicates dropped, numeric gaps filled with the median, categorical gaps with the mode, and outliers trimmed by the 1.5 times IQR rule.
✓ Explicit, logged cleaning stepCloud errors can be vague. Structured logs for activity, errors and performance, plus the health page, make failures easy to locate.
✓ Logging and health checksWhat a reviewer can see in the repository.
Where the project is still a prototype.
The repo does not yet include automated tests. Adding unit tests for each module and mocked AWS calls is the first improvement.
Logs, bytecode and sample uploads should not be committed, and sample data should be anonymised.
A price-prediction model for the car data, containerised deployment, and CloudWatch monitoring.
I'm open to full-time roles and project work in AI engineering, full-stack development, and backend systems.