fix: tolerate natural hand poses and smooth palm tracking

This commit is contained in:
2026-11-08 12:50:54 +01:00
parent 524a9ec4b7
commit ae004379a7
3 changed files with 123 additions and 16 deletions

View File

@@ -20,4 +20,4 @@ Weights: https://media.githubusercontent.com/media/opencv/opencv_zoo/main/models
SHA-256: `db0898ae717b76b075d9bf563af315b29562e11f8df5027a1ef07b02bef6d81c`
`src/hand_pose.rs` rotates and crops the detected hand, requires at least 0.8 hand confidence, and checks all five fingers for extension using 3D landmarks. Rejected poses reset the dwell/progress timer. This verifies an open hand, not whether the palm side rather than the back faces the camera. Thresholds may need tuning for the camera and viewing distance.
`src/hand_pose.rs` rotates and crops the detected hand, requires at least 0.65 hand confidence, and checks all five fingers for extension using 3D landmarks. Finger extension tolerates natural curvature and a relaxed thumb while rejecting curled fingers and fists. Rejected poses reset the dwell/progress timer; the outline persists for up to 750 ms after the last accepted sample to avoid flicker. This verifies an open hand, not whether the palm side rather than the back faces the camera. Thresholds may need tuning for the camera and viewing distance.