Raise detection resolution 640->960 to cut raw pose jitter at the source
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user