APPLICATION · OPTICAL MIRROR · PRE-RELEASE

A mirror that lights the face, not the room

An iOS front-camera mirror for putting on makeup in a dim room. It tracks the face with Vision, zooms to the lips, eyes or brows, simulates 3200–6000 K light on the preview, and corrects the shadow side of the face by a measured gain rather than by adding brightness. Everything runs on the device: no frame leaves it, and the 47 MB parsing model ships inside the app.

Optical Mirror preview on an iPhone simulator: a portrait filling the screen, a Kelvin slider, and focus buttons for full face, lips, eyes and brows.
The shipping UI driven by a synthetic sensor frame in the simulator. The preview is a live camera path on device; this frame exists so the layout and the rotation fix can be checked without a camera.
0.429 → 0.270
skin error
Mean absolute luma error on skin pixels, four portraits, before and after correction.
+3.8 dB
PSNR
7.16 → 10.96 dB against the flat-lit original of the same face.
1.04–1.33×
texture kept
High-frequency energy versus the input, gain-normalised. Above 1 means no smoothing.
33.8 fps
throughput
Shipping pipeline, 300 frames of 1080×1920 video, M-series Mac. Not a device number.

What it does

  1. Face-tracked zoom. Vision face landmarks give boxes for lips, eyes and brows. Choosing one crops and scales the preview to it, with the crop eased over frames so the view does not jump; the full-face view is the default.
  2. Light simulation in Kelvin. The camera locks white balance at 5000 K, so each preset is a real shift rather than a look-up table on top of auto white balance: 5000 K daylight, 3200 K restaurant, 6000 K office, 4200 K club.
  3. Skin-shadow correction. A 19-class face-parsing model finds skin, the illumination around each pixel is estimated from a blurred copy of the frame, and a per-pixel gain lifts the shadow side toward the face's own lit level. Free and always on.
  4. Low-light noise removal. A bilateral pass with detail re-injection, then a motion-gated temporal blend; it only runs when the scene meter says the room is dark.

Why the correction multiplies instead of adding

In a side-lit room the shadow half of the face carries the same makeup texture at lower amplitude. Adding a smooth brightness field raises the shadow but leaves that amplitude compressed, so the skin reads flat and grey — on the four test portraits the additive version kept 10–24% of the gain-normalised texture. Multiplying by a gain that follows the local illumination restores amplitude with brightness: the same test keeps 1.04–1.33×.

The gain is a soft knee, not an equaliser. It is strongest in the darkest pixels and reaches 1 at a knee set below the face's own lit level (0.8 × the 90th percentile of skin luminance, floored at 0.55), so the face keeps its modelling instead of collapsing to one flat tone. Above 0.80 sRGB a pixel is not lifted at all.

Two details came out of measurement rather than taste. The parser returns an empty mask on a dim or distant face — 0% coverage in both halves of the face box on three of the four portraits — so the parsed mask refines a face ellipse instead of replacing it, which also fills the parser's holes at lips and nostrils. And a knee anchored only to the face's own percentile cannot lift a face that is dark everywhere: it measured 0.12–0.26 with an applied gain of exactly 1.00×, hence the floor.

What is measured, and how

MetricValueMethod
Skin-shadow correctionMAE 0.429 → 0.270, PSNR 7.16 → 10.96 dBFour public-domain portraits as ground truth, each multiplied by a synthetic side-light falloff and given sensor noise, then corrected. Error is computed only on skin pixels, against the flat-lit original.
Texture retention1.04–1.33×High-frequency (Laplacian) energy on skin, normalised by the exposure change. A smoothing filter scores below 1.
Low-light denoiseσ 0.0349 → 0.0055 (−84%), PSNR +15.8 dBSynthetic 1080×1920 sequence with σ = 8/255 noise injected; the noise level is measured per frame from the quietest quadrant of a centre crop rather than assumed.
Throughput33.8 fps with everything on, 43.5 fps with the skin path offThe shipping pipeline over 300 frames of a 1080×1920 video on an M-series Mac, warm-up excluded, p50 24.8 ms and p95 62.8 ms per frame.
Device frame rateNot measured on this buildThe last device build, with an earlier relight implementation, held 20–27 fps on an iPhone 17. That number does not describe this build.

Measured 2026-12-02 on the code that produced the screenshot above. The harnesses are in the project: Tools/check-photos.sh for the portrait evaluation, Tools/check-fps.sh for throughput.

Limits

  • The four portraits are public-domain headshots. The dim room is synthetic: a distance falloff plus tint and noise, harsher in the shadows than a real room, so the correction is tested against an extreme.
  • Face parsing runs about once per second, not per frame; the mask is blended over time, and a sudden head turn shows the previous mask for a few frames.
  • 33.8 fps is a Mac number. The phone's GPU is slower, and no device build in this session was measured.
  • The app is pre-release. There is no App Store build yet, so nothing on this page is a download.

Questions

Does it upload my face?

No. The camera frames, the face landmarks, the 19-class parsing model (47 MB, bundled) and the relight all run on the device. There is no per-frame analytics call and no server in the render path.

Does it smooth the skin?

No, and that is measured rather than claimed. The denoiser hands back any detail above the measured noise floor, and the shadow correction multiplies rather than averages; texture retention on the portrait test is 1.04–1.33× against 0.10–0.24× for the additive version it replaced.

What is free, and what is paid?

Skin-shadow correction is free and always on, and so is the full-face mirror with the light presets. Landmark zoom to lips, eyes and brows is the paid tier: $19.99 lifetime, or $3.99 per week with a three-day trial.

What does it need?

iOS 17 or later, a front camera, and about 47 MB of bundled model. Core ML runs the parser on the CPU and GPU; with everything on, a frame costs 29.5 ms on an M-series Mac, of which the skin path is about 6.6 ms.

Why does a mirror need a benchmark table?

Because "it looks better" is not a claim anyone can check. The numbers above come from a script in the project, run on the same four images every time; if a change makes the correction worse, the script fails.

Status

Pre-release. The pipeline builds with no compiler warnings and five harnesses run headless: logic 18/18, filters 8/8, pipeline 15/15, relight 6/6, portraits 3/3. The device pass was done on an iPhone 17 before the current relight landed; a TestFlight build follows once that run is repeated.

Built by Ashes Born, a Hong Kong engineering firm. hello@ashesborn.cloud.