Software projects

SwiftUI / Vision / Core ML

FaceLock

A local face-recognition prototype, with an enrollment redesign that made guidance more forgiving while preserving the separate unlock checks.

View on GitHub
FaceLock app icon

The experiment

FaceLock explores local face recognition, liveness, eye attention, and a Touch ID-armed password vault in a macOS menu-bar app. Apple Vision supplies landmarks and alignment geometry; an AdaFace model running through Core ML produces embeddings for comparison with an enrolled profile.

When precise guidance became frustrating

The enrollment flow depended on head-pose measurements that were too noisy for predictable diagonal steps. Demanding an exact pose made the interface harder to complete even during normal movement. Version 1.0.3 changed the interaction instead of requiring users to reproduce a perfect angle.

Making enrollment more forgiving

Diagonal steps stopped depending on Vision’s noisy head-roll measurement. Each marker accepts a broader guided zone, needs only about 120 milliseconds of stable positioning, and captures two frames instead of three. Normal movement blur is tolerated, but a real direction change is still required between markers so holding still cannot complete enrollment.

Keeping enrollment and unlock checks separate

The enrollment changes left unlock-time identity, liveness, attention, single-face, and quality checks unchanged. Matching uses distinct fresh frames and a five-of-seven decision. If the first five frames all pass, the remaining two model runs can be skipped without reducing the five-vote requirement.

Working with macOS constraints

FaceLock does not replace macOS authentication or Apple Face ID. Its experimental password autofill depends on Accessibility and can stop working after an operating-system update. Face profiles are encrypted locally, and Touch ID is required to arm the vault again after restart. Ordinary password entry remains available when the prototype cannot proceed.

Evidence and boundaries

The README documents eleven unit tests covering recognition and supporting checks. Those tests are not an independent security evaluation. The 1.0.3 release notes ↗ document the enrollment changes and the checks that remained unchanged.

Software projects