Files
kinect/tracker-native/README.md
T
kinect-bot 5879422ab9
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python root tests (pytest, no tracker deps) (push) Canceled after 0s
ci / Python tracker (pytest, tracker/.venv) (push) Canceled after 0s
feat(tracker-native): ONNX Runtime C++ inference foundation + setup
Scaffold the zero-Python native tracker. Convert the real MediaPipe BlazePose
landmark weights (from pose_landmarker_full.task) to ONNX and prove the ONNX
Runtime C++ API runs them bit-identically to Python (ort_smoke vs
ort_smoke_ref.py; landmarks match to 6dp, mask <=1.2% prob vs TFLite).
Reproducible setup scripts (setup_models.sh, fetch_ort.sh) and a Linux build.
No binaries committed (ORT + onnx/tflite are fetched/generated).
2026-11-25 18:29:48 -05:00

27 lines
1.2 KiB
Markdown

# kinect-tracker (native, zero-Python)
Native replacement for the Python/MediaPipe `tracker/`. See
`docs/native-tracker.md` for the architecture. One `kinect-tracker.exe`:
camera + resolution picker, live preview, native pose + segmentation, and the
shared-memory publish the `Kinect10.dll` shim reads.
No binaries are committed. Generate them locally:
```sh
scripts/setup_models.sh # extract MediaPipe .task -> tflite, convert -> onnx
scripts/fetch_ort.sh # download prebuilt ONNX Runtime (linux + win x64)
./build.sh # headless Linux build (currently the ORT smoke test)
```
## Status
- Inference foundation proven: the real MediaPipe BlazePose landmark weights
(`pose_landmarks_detector`, 33 landmarks + world + 256x256 mask) convert to
ONNX faithfully (mask <=1.2% in probability space vs TFLite) and run
bit-identically under the ONNX Runtime C++ API (`build/ort_smoke` vs
`scripts/ort_smoke_ref.py`).
- Next: BlazePose pre/post (ROI, letterbox, landmark/mask un-transform)
validated against the MediaPipe reference; the detector model for ROI
acquisition (tf2onnx can't convert it yet); native shm writer; Media
Foundation capture; the Dear ImGui GUI; MinGW/MSVC Windows build.