fix(camera): constrain brightness and adjust side photo previews

This commit is contained in:
xsl
2026-10-15 20:41:28 +08:00
parent 480fed40cc
commit 8115db4ec2
6 changed files with 56 additions and 15 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-dark-100-v4', score: 0.4,
var config = Object.freeze({ version: '2026-10-15-light-150-220-v5', score: 0.4,
near: 0.30, far: 0.68, center: 0.16, edge: 0.01,
dark: 100, bright: 235, holdMs: 450, minFrames: 2, maxGapMs: 2000,
dark: 150, 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) {