All Projects
Boishakh Camera Booth — AI Portrait Generator
0ca411fc6-a9a2-4a9b-8ce9-7897e671bf5aAI/ML · Generative AI

Boishakh Camera Booth — AI Portrait Generator

Python · Flask · rembg (ONNX) · OpenCV · QR generation · Postman

PythonPythonFlaskFlaskONNXONNXOpenCVOpenCVPostmanPostman

Problem

A Pohela Boishakh activation needed an in-browser camera booth where visitors capture a portrait (or upload one), have themselves placed into a festive themed scene — eating street food, with achar and a chosen background — and instantly download the result.

Solution

Built a Flask camera-booth app with a full browser capture flow: live camera, template-overlay selection, a 3-second countdown capture, AI background removal (with graceful fallback to the original image if rembg is unavailable), automatic final-image generation, and a QR code for direct download. Users can upload a single photo or a pattern, and the AI composes the festive food scene with selectable food, achar and background elements. Clean API endpoints (/generate, /process, /templates, /health) and a ready-to-import Postman collection make it easy to test.

Impact

A robust, demo-proof event tool — it never hard-fails (background removal degrades gracefully), generates high-res output, and hands visitors a scannable QR to take their portrait home, driving on-site engagement.

AI camera boothPohela Boishakhgenerative AI portraitrembg background removalFlask web appQR code downloadevent photoboothcomputer visionimage compositing
Chat on WhatsApp