Files
winf-photobooth-app/models/README.md

1.5 KiB

Palm detection model

palm_detection_mediapipe_2023feb.onnx is the floating-point MediaPipe palm detector distributed by OpenCV Zoo, under Apache 2.0 (see LICENSE).

Source: https://github.com/opencv/opencv_zoo/tree/main/models/palm_detection_mediapipe

Weights: https://media.githubusercontent.com/media/opencv/opencv_zoo/main/models/palm_detection_mediapipe/palm_detection_mediapipe_2023feb.onnx

SHA-256: 78ff51c38496b7fc8b8ebdb6cc8c1abb02fa6c38427c6848254cdaba57fcce7c

The weights are embedded in the executable. Inference and preprocessing are implemented in src/palm.rs, following OpenCV Zoo's mp_palmdet.py reference. No download is needed at runtime.

Open-hand verification

handpose_estimation_mediapipe_2023feb.onnx provides 21 hand landmarks for second-stage verification. Distributed under Apache 2.0 (see HANDPOSE_LICENSE).

Source and preprocessing reference: https://github.com/opencv/opencv_zoo/tree/main/models/handpose_estimation_mediapipe

Weights: https://media.githubusercontent.com/media/opencv/opencv_zoo/main/models/handpose_estimation_mediapipe/handpose_estimation_mediapipe_2023feb.onnx

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.