Celebrity detector and Q&A
Finds a face in an uploaded photo, identifies the person with Llama 4 vision and answers questions.
What it does
OpenCV's Haar cascade finds the largest face in an uploaded image and draws a box around it. The image is sent to Llama 4 Maverick through Groq's API to return a structured profile, and a second Groq call answers user questions about the identified person. CircleCI builds the Flask image, pushes it to Google Artifact Registry and rolls it out on GKE.
What was built
- 01
Image handler decodes the upload, runs a frontal-face Haar cascade and marks the largest detected face.
- 02
Detector sends the base64 image to llama-4-maverick-17b with a prompt for name, profession, nationality and achievements.
- 03
QA engine answers free-text questions about the extracted name in a second chat completion call.
- 04
CircleCI workflow runs checkout, build-and-push to Artifact Registry, then kubectl apply and rollout restart on GKE.
The pipeline, layer by layer
Five layers, one pipeline.
L1Input
- Flask upload form
L2Vision
- OpenCV Haar cascade
- Llama 4 vision identification
L3Q&A
- Groq follow-up call
L4CI/CD
- CircleCI workflow
- Artifact Registry
L5Runtime
- GKE deployment