About Services Tools Blog Contact us

Smile-triggered Photo Booth

A photo booth page that scores smiles on several faces and takes the photo once a smile holds, with a flash, a shutter sound and a short polaroid strip.

  • Computer Vision
  • Leisure and sport
  • Tool
  • Productised
  • Local/private
  • 2025

The problem

Event photo booths either fire on a timer, so the picture misses the moment, or a staff member has to press the shutter. Guests also get no strip they can see at the time. That makes the booth slower to run and less fun to use.

What it does

The page reads faces from the webcam with MediaPipe and takes the biggest smile in view. When the score crosses a set level, a short delay starts, and if the smile is still there the photo is saved with a session code. The server accepts only small images and saves at most once every five seconds. The browser plays a shutter sound, flashes the screen and drops the photo onto a polaroid strip.

Outcomes

  • The shutter waits for a held smile and does not fire on a timer.
  • With several faces in frame, the strongest smile triggers the photo.
  • Saves are limited to small image files and to one every five seconds.
  • Guests see their strip on screen with no printer.

Simplified mockup

Interactive preview with sample data. Nothing is sent to a server.

Smile booth

Idle 0.10
Live threshold 0.62
Guest facing the kiosk camera
  1. Watching
  2. Score rising
  3. Smile held
  4. Save JPEG
Camera ready
This frame
Waiting for a held smile

Polaroid strip

session ses_4k91c2
Earlier guest still
14:02 · 0.74
Second earlier guest still
14:06 · 0.81

Guests see the strip on the kiosk. Nothing is sent to a printer.

Save rules

Smile gate

Threshold 0.62. The smile must still be there after a short hold.

If several faces are in frame, the highest score arms the shutter.

Server checks
Session tokenses_4k91c2
File typesSmall JPEG or PNG
ThrottleOnce every 5 seconds
Hold400 ms past the threshold

How it works

  1. Start the webcam and load the face-reading tool.
  2. Take the biggest smile score across the faces in each frame.
  3. Start a short delay when the score crosses the set level, and check the smile is still there.
  4. Send the photo to the server with a session code.
  5. Check the code, the file type and that five seconds have passed since the last save.
  6. Show a flash, play a shutter click and add a polaroid to the strip.

Pipeline

flowchart LR
  A["Webcam"] --> B["Smile score"]
  B --> C{"Held past threshold?"}
  C -->|No| B
  C -->|Yes| D["Post JPEG"]
  D --> E{"Token and throttle?"}
  E -->|Yes| F["Save still"]
  F --> G["Flash and polaroid"]
  E -->|No| H["Ignore"]

Output