Face unlock: screen fill-light for low light; fix Quad-Bayer AE ramp
CI / test (push) Failing after 51s

- Boost the backlight to 90% while enrolling with the light on or while sign-in is scanning, then restore the previous level when that ends or the window closes.
- Add a Light: On/Off toggle (L key) to the Face window; the backdrop turns soft white while the light is on.
- Quad-Bayer AE: compute the low-light gain once and cap it by the highlight limit, so ramp-up and highlight back-off agree.
- Tests: backlight round-trip through the Face window, Quad-Bayer debayer color/low-light/dark-frame cases, and the AE ramp, back-off and restore order.
This commit is contained in:
nandi committed 2026-11-28 18:32:15 -08:00
1 parent c5b96e2c70
commit 40c5d6722c
8 files changed
+266 -12

No files matched your search

+4 -5
View File
@@ -437,12 +437,11 @@ class QuadSensorAE:
return False
if 36.0 <= raw_p50 <= 64.0 and raw_p95 <= 235.0:
return False
ratio = min(4.0, max(0.25, 48.0 / max(raw_p50, 0.5)))
if raw_p95 > 240.0:
ratio = max(0.35, 200.0 / max(raw_p95, 1.0))
else:
ratio = min(4.0, max(0.25, 48.0 / max(raw_p50, 0.5)))
if raw_p95 > 120.0 and raw_p95 * ratio > 235.0:
ratio = max(0.25, min(ratio, 235.0 / raw_p95))
ratio = min(ratio, max(0.25, 200.0 / max(raw_p95, 1.0)))
elif raw_p95 > 120.0 and raw_p95 * ratio > 235.0:
ratio = max(0.25, min(ratio, 235.0 / raw_p95))
new_ev = max(self.e_min, min(self.ev_total * (ratio ** 0.75), self.e_max))
if abs(new_ev - self.ev_total) <= self.ev_total * 0.05:
return False