kinect-bot b1638944cb
ci / Linux C++ core (cmake + ctest) (push) Canceled after 0s
ci / Python tracker (pytest) (push) Canceled after 0s
feat(e2e-linux): live recorded-video->tracker->synth->OpenNI2 moving-depth proof (wave 7; todo 10 done; +20/21 follow-ups)
2026-11-25 05:34:06 -05:00

Webcam-driven virtual Kinect v1

Make an ordinary RGB webcam present itself as a genuine Microsoft Kinect v1 sensor so unmodified Kinect apps — primary proof target DanceEvolution Arcade (DEA) on Windows — run with no recompile. We emulate the device (the thing on USB), not the game's API, so the approach is OS-agnostic and the real host Kinect stack (MS NUI on Windows, OpenNI2/NiTE on Linux) computes the skeleton from webcam-derived synthetic depth.

Clean-room notice

All synthesis, mapping, protocol, and shim code in this repository is written fresh. The public Kinect NuiApi.h headers and the libfreenect USB protocol are treated as interface facts only. No GPLv3 source (KinectFaker, NiVirtualCam, NiTE2, etc.) is read or vendored. The MS Kinect 1.8 runtime, NiTE2, and any game assets are never bundled — the docs link to their official sources.

Module map

Path Role
core/contract/ Frozen, versioned IPC frame + control schema (todo 2)
core/mapping/ NUI intrinsics, MediaPipe-33 -> Kinect-20 map, Holt smoothing (todo 6)
core/synth/ Packed depth + player-index + color rasterizer (todo 7)
core/protocol/ Kinect v1 virtual USB device emitter (todo 8)
tracker/ Python webcam -> MediaPipe pose/segmentation -> IPC (todo 5)
attach/linux/ Linux USB attach via usbip/vhci (todo 9)
attach/windows/ Windows virtual USB bus attach + signing docs (todo 12)
fallback/linux-openni2/ OpenNI2 virtual device fallback / general emulator (todo 15)
fallback/windows-nui/ Clean-room Kinect10.dll NUI shim (todo 14)
tools/logging-shim/ Pass-through logging shim for the Windows spike (todo 4)
tools/record-replay/ Deterministic record/replay harness (todo 16)
tools/mock-nui-host/ Mock NUI host driving the shim (todo 16)
tests/ Cross-cutting C++ (CTest) + Python (pytest) smoke tests
docs/ Build, setup, calibration, troubleshooting, spike reports

The shared engine is the OS-agnostic core/ (built into libnui_core, unit-tested on Linux); only the thin attach/ and fallback/ layers are per-OS.

Build

See docs/build.md. Quick start (Linux):

cmake -S . -B build/linux && cmake --build build/linux
ctest --test-dir build/linux --output-on-failure
.venv/bin/pytest -q

The full plan lives in .omo/plans/webcam-kinect-emulator.md; the architecture and NUI contract notes in .omo/design/.

S
Description
No description provided
Readme
86 MiB
0 Stars 1 Watchers 0 Forks
Languages
C++ 65.9%
Python 21.3%
Shell 3.7%
PowerShell 3.6%
CMake 2.8%
Other 2.7%