Inspiration

93% of US public schools run security cameras, and every one stores every student's face. Rise of surveillance. Today's privacy tools blur faces only on screen. We wanted cameras that keep people safe but forget who they are.

What it does

Veil blurs and encrypts every face in the browser before footage is uploaded. Claude reviews only the blurred frames and flags fights, falls, thefts, and camera tampering. Officers mark each alert Real or False alarm, and every site learns from it. Unlocking a face takes a written reason and is logged forever.

How we built it

  • Computer vision: MediaPipe finds heads in the browser. Each face gets its own AES-256 key.
  • Vision LLM: Claude Opus 5.5, through the Vercel AI SDK, returns events validated with Zod.
  • Learning: each event type's alert threshold follows how often officers reject it:

Threshold = (0.4 + 0.5) x (false alarms + 1)/ (labels + 5)

Stack: Next.js, Supabase, Vercel, and parallel Claude Code agents. 267 tests.

Challenges we ran into

Our first demo clip, a high-five, failed because the hands met inside the face blur and the AI couldn't see them. We switched to hugs. About 1 in 13 model calls returned broken JSON, so we added a retry and a clean fallback.

Accomplishments that we're proud of

  • We measured the learning instead of just claiming it: False alarms dropped from 5 to 1 over four weeks, while Veil still caught 8 of 8 real incidents, on the real model across 3 runs.
  • Faces never leave the browser in the clear: Every head is blurred and encrypted on the device before upload.
  • One school's labels help another: A school with zero labels of its own improved just as much from a store's labels.
  • A full working product, live and public: in-browser video pipeline, review console, audit log, tamper check, and a pitch deck built into the app, with 267 tests.

What we learned

  • Privacy and learning are linked: Blurring faces removes expressions, so on day one the AI can't tell a hug from a fight. Human labels are what win that accuracy back, which is why learning is the core of the product, not an add-on.
  • Pooling has limits. When we combined both sites' labels, false alarms crept back up in week 4. Our best read is that the AI sees only the 3 newest false alarms per type, so newer labels pushed out older lessons. The fix is keeping more examples per type.

What's next for Veil

  • Paid pilots with a school, a store, and a hospital.
  • A labeled video set from the first pilot, to measure real-world accuracy.
  • Key wrapping moved to a KMS, and hashing moved to the recorder.

Built With

  • claude
  • next.js
  • supabase
Share this project:

Updates

Submission history