24 Commits
Author SHA1 Message Date
kinect-bot 48eb19dd43 fix(calibration): gesture wording matches derivation (todo 9); restore build.sh exec bit 2026-11-27 04:10:29 -05:00
kinect-bot ee6781ef31 feat(release): wave 3 landed - preflight, docs refresh, limitations 2026-11-27 03:49:56 -05:00
kinect-bot 710c4f23e5 feat(release): wave 1 landed - tuning/calibration, model+ORT distribution, licensing, 2P experiment+probe 2026-11-27 03:05:51 -05:00
kinect-bot 449cb2d749 feat(tracker): remember the last-selected camera + resolution in kinect_tracker_last.txt next to the exe; the dropdowns default to it on next launch (falls back to the first camera if it's gone). User rebuilds the tracker. 2026-11-27 01:03:44 -05:00
kinect-bot 86722b0379 perf(tracker): multi-thread ONNX inference (was single-threaded, the dominant latency; now ~half the cores clamped 2-4) + replace the capture->infer Sleep(1) poll with a condition-variable wake and a buffer swap (no fixed poll latency, no per-frame copy under lock). User rebuilds the tracker. 2026-11-27 01:01:25 -05:00
kinect-bot 91c4e82ea6 fix(tracker): restore source mirror - real Kinect data (UTKinect/MSR) shows right hand is +x rel shoulder-center; our un-mirrored build had it -x (flipped), pinning the menu cursor 2026-11-26 23:24:43 -05:00
kinect-bot 03e3a1808c perf(tracker): low-latency capture - MF_LOW_LATENCY + dedicated capture thread that keeps only the latest frame (inference never processes a stale backlogged frame) 2026-11-26 03:07:10 -05:00
kinect-bot 8a86cac605 tracker-native: test-image mode - pick a picture instead of the camera (WIC decode, same pose/publish/preview pipeline) 2026-11-26 01:15:07 -05:00
kinect-bot 275b7e27c4 tracker-native: Linux skeleton-render probe + script + full-body test image (validates pose pipeline headless) 2026-11-26 01:02:31 -05:00
kinect-bot 6c886ae328 tracker-native: draw skeleton bones in preview; windows-nui: revert diagnostic fixed-Position probe 2026-11-26 01:00:42 -05:00
kinect-bot 1540a5aec7 tracker-native: mirror camera at source (preview + feed + skeleton consistent) 2026-11-26 00:10:25 -05:00
kinect-bot 0dfeedb2a0 tracker-native: restrict capture to 4:3 resolutions; 4:3 preview window (Kinect is native 4:3) 2026-11-25 23:50:07 -05:00
kinect-bot b5c7b74faf tracker-native: double-buffer preview to stop flicker
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
2026-11-25 23:24:45 -05:00
kinect-bot 6dc472921a tracker-native: letterbox preview to preserve aspect ratio
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
2026-11-25 22:59:19 -05:00
kinect-bot b3bdd5f7dc fix(tracker-native): camera-open fallback to RGB32 default size
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
If a webcam can't deliver RGB32 at the exact chosen native resolution,
SetCurrentMediaType failed and the camera wouldn't open at all. Now it retries
RGB32 without forcing the frame size (MF picks a supported size + converts) and
adopts whatever is negotiated (read back from GetCurrentMediaType), so the app
degrades gracefully instead of hard-failing.
2026-11-25 19:46:51 -05:00
kinect-bot b30deb7cc5 fix(tracker-native): stride-aware RGB32 capture (handle bottom-up + padding)
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
Media Foundation commonly delivers RGB32 bottom-up (negative MF_MT_DEFAULT_STRIDE);
a flat top-down memcpy would make the preview and published feed upside-down.
read_frame now copies row by row honoring the signed stride (flip when negative,
handle padded strides), producing a top-down BGRA frame per the MS Image Stride
spec. Orientation is logged at open.
2026-11-25 19:14:07 -05:00
kinect-bot 5239ae5b81 feat(tracker-native): multi-scale acquisition substitutes for the float16 detector
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
The pose_detector.tflite is float16-quantized, which tf2onnx 1.16.1/1.17/git-main
all fail to convert (misreads float16 constants -> 'reshape 96 into (16,1,1,24)').
Rather than block on that upstream tool bug for an acquisition-only model,
PoseEstimator::acquire() runs the landmark model over a few candidate ROIs
(scales x vertical positions) and keeps the best presence. Headless on
grace_hopper it reaches 0.730 presence - matching the detector's 0.731 - so
acquisition quality is recovered. Worker now acquire()s until locked, then
single-run tracks via the aux-landmark ROI.
2026-11-25 19:11:57 -05:00
kinect-bot f2783ce903 feat(tracker-native): MTA COM-init on worker thread + MSVC CMakeLists
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
Worker thread creates and drives the Media Foundation source reader, so it must
be COM-initialized (CoInitializeEx MTA) - without it ReadSample can fail; fixes
a likely first-run camera failure. Adds CMakeLists.txt for an MSVC/Visual Studio
build (objective wants MSVC-compatible), auto-copying onnxruntime.dll + the model
next to the exe.
2026-11-25 19:05:30 -05:00
kinect-bot b2513c5722 feat(tracker-native): kinect_tracker.log diagnostics for playtest
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
Adds a ShimLog-style trace log next to the exe (startup, camera enumeration,
negotiated capture format + MF_MT_DEFAULT_STRIDE, per-N-frame presence/tracked,
shm CreateFileMapping result, errors) so the first real-hardware run is
diagnosable instead of blind - mirrors how kinect_shim.log drove the shim fixes.
Logs the camera stride so a top-down/bottom-up RGB32 image-flip is immediately
visible.
2026-11-25 19:04:20 -05:00
kinect-bot 31178f1675 feat(tracker-native): native Windows app - MF camera + Win32 GUI + shm publish
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
win_camera: Media Foundation device + native-resolution enumeration and RGB32
capture. win_main: plain Win32 GUI (device/resolution dropdowns, Start/Stop,
StretchDIBits live preview with mask+landmark overlay) + CreateFileMappingW on
kinect_virtual_frames + a worker thread wiring capture -> PoseEstimator
(bootstrap+track) -> FramePipeline -> publish. build_win.sh cross-compiles a
static kinect-tracker.exe with MinGW-w64 x64 (ORT header needs
-D_stdcall=__stdcall; x64 ignores the calling convention so the win ORT DLL ABI
matches). PoseEstimator path made ORTCHAR_T/wchar-portable; M_PI -> local const.
Builds clean; exe is PE32+ GUI x86-64.
2026-11-25 19:00:38 -05:00
kinect-bot 41534b07d1 feat(tracker-native): full pose->mapping->synth->shm pipeline (headless-validated)
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
FramePipeline ties PoseEstimator to the existing C++ core: 33 landmarks ->
core/mapping SkeletonMapper (20 Kinect joints), the image-space segmentation
mask + skeleton -> core/synth DepthRasterizer (articulated packed depth), color
-> passthrough_color, all published via ShmPublisher. PoseEstimator now also
emits world-landmark z (Identity_4) and an image-space mask (inverse-affine
warp). pipeline_probe on grace_hopper: tracking_id=1, 9/20 joints tracked, 56%
body depth pixels, hip at (0,-1.05,2.5)m - the whole tracker brain verified
without a camera. Remaining: Media Foundation capture + Dear ImGui GUI.
2026-11-25 18:52:07 -05:00
kinect-bot 2715a706a0 feat(tracker-native): C++ PoseEstimator (ORT landmark + hand-written affine warp)
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
Ports blazepose_ref.py to a reusable C++ PoseEstimator: hand-written bilinear
affine ROI warp (no OpenCV dep), ORT landmark inference, landmark/mask decode +
inverse-affine to image space, and next-frame ROI from the aux landmarks for
tracking. Validated headless vs the numpy reference (pose_probe vs dump_ref):
presence matches to 1e-6, visible torso landmarks within ~1-2px, mask logit
within 0.03; only low-confidence off-frame hand/aux landmarks differ.
2026-11-25 18:47:56 -05:00
kinect-bot ddf4847a0c feat(tracker-native): native shm writer + headless round-trip test
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
ShmPublisher mirrors the Python FrameContractPublisher seqlock (write slot
ahead, odd->even sequence, bump published_sequence) over a base pointer, reusing
core/contract structs directly (Windows MapViewOfFile on the app; a heap buffer
in the test). Round-trip test proves the layout+seqlock the shim reader accepts:
frame number, timestamp, skeleton, descriptors, depth+color pixels all verify.
2026-11-25 18:41:58 -05:00
kinect-bot 5879422ab9 feat(tracker-native): ONNX Runtime C++ inference foundation + setup
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
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