From 80bae56948ef47d807f5f85fda9f3c879601c7fe Mon Sep 17 00:00:00 2001 From: jessikitty Date: Tue, 4 Aug 2026 11:20:12 +1000 Subject: [PATCH] Raise detection resolution 640->960 to cut raw pose jitter at the source --- public/js/exhibit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/exhibit.js b/public/js/exhibit.js index 8680053..c83069d 100644 --- a/public/js/exhibit.js +++ b/public/js/exhibit.js @@ -240,8 +240,10 @@ let frameCount = 0; function loop(t) { requestAnimationFrame(loop); if (video && video.readyState >= 2) { - // downscale for detection speed - const W = 640; + // downscale for detection speed. 960px (was 640) — corner precision scales with + // resolution, so higher W directly reduces raw pose jitter; 960 balances that + // against per-frame CPU. See fuse.js OneEuro filter for the temporal half. + const W = 960; const H = Math.round(W * video.videoHeight / video.videoWidth); if (canvas2d.width !== W) { canvas2d.width = W; canvas2d.height = H; } ctx2d.drawImage(video, 0, 0, W, H);