fix: remove duplicate lAnkleX/rAnkleX declarations in pose-decoder
Stale code block from old intensity-based tracking was left behind, re-declaring variables already defined by centroid-based tracking. Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
parent
24a340bdaf
commit
fe8232f453
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>WiFi-DensePose — Dual-Modal Pose Estimation</title>
|
||||
<link rel="stylesheet" href="pose-fusion/css/style.css?v=6">
|
||||
<link rel="stylesheet" href="pose-fusion/css/style.css?v=7">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
@ -172,6 +172,6 @@
|
|||
|
||||
</div><!-- /main-grid -->
|
||||
|
||||
<script type="module" src="pose-fusion/js/main.js?v=6"></script>
|
||||
<script type="module" src="pose-fusion/js/main.js?v=7"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
* Main orchestration: video capture → CNN embedding → CSI processing → fusion → rendering
|
||||
*/
|
||||
|
||||
import { VideoCapture } from './video-capture.js?v=6';
|
||||
import { CsiSimulator } from './csi-simulator.js?v=6';
|
||||
import { CnnEmbedder } from './cnn-embedder.js?v=6';
|
||||
import { FusionEngine } from './fusion-engine.js?v=6';
|
||||
import { PoseDecoder } from './pose-decoder.js?v=6';
|
||||
import { CanvasRenderer } from './canvas-renderer.js?v=6';
|
||||
import { VideoCapture } from './video-capture.js?v=7';
|
||||
import { CsiSimulator } from './csi-simulator.js?v=7';
|
||||
import { CnnEmbedder } from './cnn-embedder.js?v=7';
|
||||
import { FusionEngine } from './fusion-engine.js?v=7';
|
||||
import { PoseDecoder } from './pose-decoder.js?v=7';
|
||||
import { CanvasRenderer } from './canvas-renderer.js?v=7';
|
||||
|
||||
// === State ===
|
||||
let mode = 'dual'; // 'dual' | 'video' | 'csi'
|
||||
|
|
|
|||
|
|
@ -273,16 +273,6 @@ export class PoseDecoder {
|
|||
const lHandOpen = Math.min(1, leftArmRaise * 0.5 + lArmSpread * 0.5);
|
||||
const rHandOpen = Math.min(1, rightArmRaise * 0.5 + rArmSpread * 0.5);
|
||||
|
||||
// Left ankle/knee positions
|
||||
const lAnkleX = cx - hipHalfW + legMotion.left * legSwing * 1.3;
|
||||
const rAnkleX = cx + hipHalfW + legMotion.right * legSwing * 1.3;
|
||||
const lKneeX = cx - hipHalfW + legMotion.left * legSwing;
|
||||
const rKneeX = cx + hipHalfW + legMotion.right * legSwing;
|
||||
|
||||
// Neck (midpoint between shoulders)
|
||||
const neckX = cx;
|
||||
const neckY = shoulderY - P.headToShoulder * bodyH * 0.35;
|
||||
|
||||
const keypoints = [
|
||||
// 0: nose
|
||||
{ x: headX, y: headY + 0.01, confidence: 0.92 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue