Camera off · on device

    Lab

    Onlooker.

    A curious little thing that lives in your computer and looks at you through the camera. It follows your face, your hands and your body, guesses your mood, and names the things you hold up. Everything runs in your browser: the picture never leaves your device.

    Tap
    study what's there, up close
    Drag
    draw a box around something to study
    Hold it up
    keep a thing still for two seconds and it takes a closer look by itself

    Models: MediaPipe (Google), SlimSAM through Transformers.js (Hugging Face). A beta: the names can be wrong, and a phone gets the lighter Magic Touch for a closer look.

    How it’s built

    Six MediaPipe models take turns on the camera frames in two workers, a quick one and a slow one, and Segment Anything takes a closer look in a third. The page itself only draws. Nothing leaves your device.

    Tech
    MediaPipe · Segment Anything · Transformers.js · WebGPU · Web Workers · Canvas 2D · getUserMedia
    Source
    1795 lines · 87.7 kB