fix(camera): set accepted face brightness to 110–220

This commit is contained in:
xsl
2026-10-15 20:51:19 +08:00
parent fbc556d1a6
commit c6d65493b6
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -6,9 +6,9 @@
'use strict';
// Real-phone feedback: ease alignment and normal hand/head movement while
// retaining two checked frames, one face, framing and final JPEG validation.
var config = Object.freeze({ version: '2026-10-15-light-150-220-v5', score: 0.4,
var config = Object.freeze({ version: '2026-10-15-light-110-220-v6', score: 0.4,
near: 0.30, far: 0.68, center: 0.16, edge: 0.01,
dark: 150, bright: 220, holdMs: 450, minFrames: 2, maxGapMs: 2000,
dark: 110, bright: 220, holdMs: 450, minFrames: 2, maxGapMs: 2000,
yawDrift: 8, pitchDrift: 8, centerDrift: 0.055, sizeDrift: 0.065 });
function finite(v) { return typeof v === 'number' && isFinite(v); }
function evaluate(d, options) {