Ring scanner: portrait streams, keep tightest blob

This commit is contained in:
2026-08-16 20:00:08 +01:00
parent 1d6028715b
commit e677e270fd
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ export function makeRingScanner(opts = {}) {
if (d) return d;
}
track = null;
const k = Math.min(1, WIDE / sw);
// phones held upright hand over a 1080x1920 stream
const k = Math.min(1, WIDE / Math.max(sw, sh));
wide.width = Math.round(sw * k); wide.height = Math.round(sh * k);
// plain bilinear at 3x reduction skips pixels and keeps the noise
wctx.imageSmoothingQuality = "high";