1,778 Stars Review: Enable Face Unlock on Your Mac, But It Can't Stop a Video of You

1,778 Stars Review: Enable Face Unlock on Your Mac, But It Can't Stop a Video of You

1 week ago
duguying
6 views
Source: GitHub

The open-source macOS application, Glance, uses the MacBook's camera for facial recognition unlocking, with all processing (identification and liveness detection) performed locally. The author also explicitly warns that while it can prevent unauthorized access using photos, it cannot protect against video recordings; this is a convenience feature, not a security upgrade.

Related tags

#Glance#macOS#人脸识别#开源

Project Overview

Glance is an open-source application that brings the iPhone’s Face ID experience to Macs: unlocking without typing a password, or reaching for the Touch ID button, simply by looking at the camera. All facial recognition, liveness detection, and face enrollment happen locally, leveraging Apple’s Vision and Core ML frameworks, keeping face data and Mac passwords within the device. The interface is seamlessly integrated into the MacBook’s notch, with animations inspired by the Dynamic Island.

Developed by Jonathan Zhou using Swift and licensed under the MIT license, Glance was created on July 21, 2026, and has gained 1,778 stars and 159 forks as of November 4, 2026. The latest version is v1.2.0, released on September 30.

What Problems Does It Solve?

On a MacBook, there are only two ways to unlock: entering a password or using Touch ID. These methods become cumbersome when using external keyboards, having wet hands, wearing gloves, or simply wanting a faster unlocking experience. Glance addresses this by turning the camera into a key – just sit in front of the screen, and it handles the unlocking for you.

How It Works

The entire process consists of four steps:

  1. Upon first launch, the application guides you through enrolling your face. This involves rotating your head 90 degrees repeatedly, with each frame being converted into a 512-dimensional embedding vector (which can be understood as a mathematical fingerprint of the face). The original image is then discarded immediately.
  2. You enter your Mac password using Touch ID for encryption and secure storage.
  3. When you lock your Mac or wake it from sleep, an animation appears in the notch area, initiating the face scanning process.
  4. If the face is recognized and the liveness detection system confirms that you are a real person, Glance automatically enters your password and logs you into your desktop.

The trigger timing can be customized to: waking up, locking, or pressing the spacebar on the lock screen. Any combination of these triggers can be used.

Key Mechanisms: How It Distinguishes Real People from Photos

This is arguably the most interesting aspect of the project. Glance collects five independent clues within a 2-second window, categorizing them into two categories:

  • Denying Clues: These include screen reflections and the presence of rectangular devices in the frame. If any of these are present, the scan is immediately deemed invalid, and all other clues are discarded.
  • Confirming Clues: These involve geometric differences between a flat surface and 3D key points, parallax effects during head rotation, and blinking. If any of these are detected, the face is considered genuine; however, the absence of these clues does not necessarily invalidate the scan – a real person sitting still or not blinking is perfectly normal.

Liveness detection operates in two modes: “Light” only uses denying clues, while “Heavy” employs both types. The README recommends using the “Heavy” mode for truly robust protection against photo attacks.

Its Own Security Boundaries

The README includes a clear warning before downloading:

Glance cannot be as secure as Apple’s Face ID or Touch ID.

This is due to the physical limitations of the MacBook camera. Unlike iPhones, MacBooks do not have the depth sensors that allow for 3D mapping of faces. The MacBook camera only captures a 2D image of your face, while iPhones create a 3D map of your face. The author has summarized this limitation into three points:

  • Under heavy liveness detection, Glance can “reasonably” block printed photos and screenshots taken on phones;
  • However, it cannot reliably block videos captured from your device;
  • macOS does not provide a standard API for third-party applications to authenticate, so Glance achieves this by automatically entering the saved password on the lock screen – it bypasses the system and only acts as an intermediary.

The conclusion is that Glance is more of a convenience feature than a security upgrade. Users should understand these limitations before using it.

Where Does the Biometric Data Reside?

  • Face: The application never stores camera images. When enrolling, each frame is converted into a 512-dimensional embedding vector using an ArcFace Core ML model; the original frame is then discarded. These vectors are stored locally and encrypted with AES-GCM.
  • Password: Encrypted storage is used, preventing the plaintext password from being written to disk. The encryption key is a 256-bit AES key stored in the macOS keychain, protected by Touch ID or device password. This key only exists in memory during authorized Glance sessions.
  • Unlocking Pipeline: Unlocking does not automatically happen just because the face matches. Five conditions must be met simultaneously: The session must be authorized, the Mac must be in sleep mode, at least one identified person must have a similarity score above the threshold, liveness detection must confirm that it’s a real person, and assistive access permissions must be enabled. Both facial recognition and liveness detection processes require confirmation.

Key Features

Feature Description
Face Unlock Triggered by waking up, locking, or pressing space on the lock screen; can be combined in any way
Multiple Identities Supports enrolling multiple faces, including different versions of yourself (with glasses, beard, different lighting); removing a profile does not require deletion
Liveness Detection Distinguishes between real movements and photo reflections, with Light/Heavy modes available
Dynamic Island UI The closed capsule expands into a scanning animation with success and failure states; hovering allows for retries or complete disabling of the animation
Camera & Display Allows specifying which camera to use (internal screen or external display)
Automatic Session Locking Touch ID sessions automatically lock after inactivity, preventing unauthorized access when the Mac is unattended
Touchpad Feedback Provides haptic feedback when hovering the mouse over the Dynamic Island area
No Notch Design Uses a capsule-shaped design for devices without a notch
Data Sovereignty Allows users to edit or delete face enrollments and saved passwords at any time; deleted files are immediately removed from storage

The v1.2.0 update includes: Swipe support in the settings, “Show in menu bar” option, 30-day default setting for automatic session locking, directional feedback when rotating your head during enrollment, compatibility with different sized Dynamic Islands, faster password input, and the Face Lab feature is now loadable on demand to reduce background memory usage. The recognition also allows for two consecutive scans to fail before declaring a failure, making the initial wake-up scan more tolerant.

Getting Started

System Requirements: macOS 15 Sequoia or later, Apple Silicon or Intel Mac.

Download the latest DMG file from the official website or release page. Once downloaded, simply drag “Glance” into your /Applications folder:

https://github.com/jonnyoo/glance/releases/latest/download/Glance.dmg

The first time you run it, you will be prompted to grant three permissions: Camera (to recognize faces and process frames in memory only), Accessibility (to input passwords on the lock screen), and Touch ID (to encrypt face data and password with the Touch ID key).

To build the code yourself, you need macOS 15+ and Xcode 26+:

git clone https://github.com/jonnyoo/glance.git
cd glance
open glance.xcodeproj

Then press Cmd + R in Xcode to run.

Another hidden feature worth trying is: Enter “System Preferences -> About”, repeatedly click the application icon 5 times, a debugging section Face Lab will appear in the sidebar, you can use real values to test face recognition and liveness detection performance.

Project Status and License

  • Language: Swift; License: MIT, © Jonathan Zhou
  • Data: 1,778 stars / 159 forks / 34 open issues
  • Timeline: Created on July 21, 2026, latest commit on September 30, 2026, latest version v1.2.0
  • Currently does not accept PRs; you can fork it freely; feedback should be sent through tryglance.app/feedback
  • Credits: The Boring Notch (physical animation of the Dynamic Island), InsightFace (ArcFace model for recognition), Alcove (design inspiration)

Getting and Learning More

More News

Want to see more quality content?

Browse all news