Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.32 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.32 KB

tools/ — helper scripts

Scripts that aren't needed while the game runs — they prepare the poses.

Pose recorder

The main tool for creating new poses: stand in front of the camera, press space, the tool averages 30 frames, computes the joint angles and saves a JSON into ../poses/. Run it from the repo root:

./run_recorder.sh

Controls: SPACE — capture pose (averages 30 frames) · E/M/H — difficulty (sets tolerance 25°/18°/12° and multiplier ×1.0/×1.3/×1.6) · R — retake · ENTER — name it and save · ESC — quit. Code: ../pose_recorder.py.

Pose generators (one-shot)

Scripts that generated the starting pose pool from hand-designed keypoints (a mannequin in a [0,1]² canvas). Target angles are computed from those keypoints, so the preview skeleton and the scoring stay consistent.

Script Poses
_gen_default_poses.py 01–05 (T-Pose, L-Shape, Warrior, Sprinter, Star)
_gen_extra_poses.py 06–10 (Cactus, Y-Pose, Wall-sit, Flamingo, Mummy)
# from the repo root
python3 tools/_gen_default_poses.py
python3 tools/_gen_extra_poses.py

Note: these overwrite the files in poses/. The poses are already generated — only run them if you want to recreate the pool from scratch.