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);