Rename Python visual producer as diagnostic
This commit is contained in:
parent
3126f26e1b
commit
4c3bb4c533
11 changed files with 14 additions and 13 deletions
|
|
@ -53,7 +53,7 @@ shape removes independent per-kind storage from the live foundation.
|
|||
- `localcast.sensor_fusion.render_bridge` emits render-frame packets with visual/audio timing metadata and Spout sender identity.
|
||||
- `localcast.sensor_fusion.cultcache_docs` stores live visual state as typed CultCache MessagePack documents.
|
||||
- `localcast.diagnostics.spout_output` renders render-frame packets into a GPU texture and publishes it as a named Spout sender for OBS. This is diagnostic/migration code, not production runtime.
|
||||
- `scripts/live_sensor_fusion.py` writes fused render frames into `calibration/runs/visual-state.msgpack`.
|
||||
- `scripts/diagnostic_live_sensor_fusion.py` writes fused render frames into `calibration/runs/visual-state.msgpack`. This is diagnostic/migration code, not production runtime.
|
||||
- The live visual producer writes a multi-LOD scene cache with source kind and priority. Real Leap frames are promoted as the highest-priority visual timing/spatial evidence; Leap fallback frames remain lower-priority diagnostics.
|
||||
- Live clap calibration is wired into the visual producer. It keeps a rolling frame window from the Kiyo pair plus Leap, reads the live spatial audio frame for transient candidates, publishes `clap-events.msgpack`, injects clap calibration markers into the render frame, and writes clap evidence into the LOD cache. Kiyo stereo owns the current rough 3D solve; Leap owns the best visual timing witness until its geometric model is calibrated.
|
||||
- Clap peaks now update a per-camera clock sync model. The point-cloud builder can sample camera history buffers at `oracle_time - camera_offset` instead of using whichever frame arrived last.
|
||||
|
|
@ -62,7 +62,7 @@ shape removes independent per-kind storage from the live foundation.
|
|||
- The Spout/audio overlay boundary clamps stale visual packets to the current audio reservoir edge. If camera geometry ages out, it is dropped instead of being broadcast out of sync.
|
||||
- Live fallback-only RGB/Leap mode exists for deadline operation when OpenCV/MSMF/DirectShow reads block longer than the five-second reservoir. It keeps the reservoir and OBS output alive while real camera capture is moved to nonblocking ingress.
|
||||
- OpenCV camera reads now run behind `LatestFramePump` workers so blocking drivers cannot freeze the fusion hot loop. The live deadline command uses lower per-frame sample density (`--rgb-room-step 16 --leap-step 16 --points 64`) so the reservoir/TAA path stays fresh enough for Spout to render visual points inside the five-second budget.
|
||||
- `localcast.sensor_fusion.chirp_pose` converts live phase-field delay meaning for Kiyo/PS Eye microphone sources into camera-body range constraints and per-camera pose-correction estimates. It can load camera-mic and speaker geometry from the audio-field profile, with the example profile used as the live fallback until measured local geometry exists. `scripts/live_sensor_fusion.py` injects those constraints as `camera-chirp:*` and `camera-pose-correction:*` render points plus `chirp-camera-pose` LOD evidence.
|
||||
- `localcast.sensor_fusion.chirp_pose` converts live phase-field delay meaning for Kiyo/PS Eye microphone sources into camera-body range constraints and per-camera pose-correction estimates. It can load camera-mic and speaker geometry from the audio-field profile, with the example profile used as the live fallback until measured local geometry exists. `scripts/diagnostic_live_sensor_fusion.py` injects those constraints as `camera-chirp:*` and `camera-pose-correction:*` render points plus `chirp-camera-pose` LOD evidence.
|
||||
- `scripts/stream_spout.py` runs the deadline Spout sender loop from the typed cache with typed and JSON heartbeat status.
|
||||
- The deadline Spout renderer has a named `kiyo-mid-deru` virtual camera preset: eye at the midpoint between the two Kiyo-class cameras and target on the co-streamer body volume. It also applies a renderer-owned point budget with pinned calibration/cross-modal constraints, stable high-confidence anchors, and frame-varying remainder samples so downstream TAA/supersampling can accumulate detail without forcing every source claim into every OBS frame. Its JSON heartbeat reports the prefix counts that survived the render budget.
|
||||
- `docs/obs-spout-streaming.md` documents OBS setup and the Aquarium replacement boundary.
|
||||
|
|
@ -100,7 +100,7 @@ shape removes independent per-kind storage from the live foundation.
|
|||
|
||||
## Next
|
||||
|
||||
1. Quarantine or delete production use of `scripts/live_sensor_fusion.py`,
|
||||
1. Delete remaining production dependence on `scripts/diagnostic_live_sensor_fusion.py`,
|
||||
`localcast.diagnostics.spout_output`, JSON render-frame stores, JSON LOD
|
||||
stores, and Python reservoir-window clipping.
|
||||
2. Bind Aquarium/Faust to the rolling-buffer `LocalcastRuntime`.
|
||||
|
|
|
|||
|
|
@ -135,9 +135,9 @@ Delete or quarantine these before adding new live features:
|
|||
4. Add the minimal Aquarium/Faust C ABI over the rolling buffer.
|
||||
5. Move any remaining useful Python packet/schema code into diagnostics or
|
||||
contract tests.
|
||||
6. Remove production imports of `scripts/live_sensor_fusion.py` and keep the
|
||||
OpenGL Spout bridge under `localcast.diagnostics.spout_output` only until it
|
||||
can be deleted.
|
||||
6. Keep the Python visual producer named `scripts/diagnostic_live_sensor_fusion.py`
|
||||
and the OpenGL Spout bridge under `localcast.diagnostics.spout_output` only
|
||||
until they can be deleted.
|
||||
7. Replace the OpenGL Spout path with an Aquarium-owned Spout publisher.
|
||||
8. Move audio hot path into Faust/native DSP behind typed reservoir handles.
|
||||
9. Keep FFmpeg/SRT scripts only as simple V1 LAN bridge and capture utilities.
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ Start the Spout sender:
|
|||
Start the current live fusion producer:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe .\scripts\live_sensor_fusion.py `
|
||||
.\.venv\Scripts\python.exe .\scripts\diagnostic_live_sensor_fusion.py `
|
||||
--cache .\calibration\runs\visual-state.msgpack `
|
||||
--fps 30 `
|
||||
--points 256
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ The Spout/audio overlay applies the same rule at the consumer boundary. If the v
|
|||
1. Capture ChArUco intrinsics for each camera with `scripts/charuco_calibration.py calibrate`.
|
||||
2. Capture fixed-board observations from every camera and solve shared extrinsics with `scripts/solve_common_camera_space.py`.
|
||||
3. Use `scripts/triangulate_surface_features.py` on calibrated image pairs to prove real cross-view surface tracks before promoting the matcher into the live producer.
|
||||
4. Replace the synthetic stochastic transient observations in `scripts/live_sensor_fusion.py` with real ORB/flow observations from PS3 Eye/Kiyo frames.
|
||||
4. Replace the synthetic stochastic transient observations in `scripts/diagnostic_live_sensor_fusion.py` with real native/Aquarium ORB/flow observations from PS3 Eye/Kiyo frames, then delete the Python diagnostic producer.
|
||||
5. Move dense matching and LOD reconciliation from CPU block search/JSON to GPU-resident stereo/flow and compute-shader cache reduction so the million-sample target is not murdered by Python loops.
|
||||
6. If a Tuya light is available on the local network, run `scripts/pulse_tuya_light.py` with its local key and align pulse timestamps against camera brightness response.
|
||||
7. Add detector adapters that turn PS3 Eye frames into `Observation2D` marker detections.
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ JSON is no longer the authority for live visual state. The renderer consumes `ca
|
|||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["live_sensor_fusion.py"] --> B["SensorRig.fuse"]
|
||||
A["diagnostic_live_sensor_fusion.py"] --> B["SensorRig.fuse"]
|
||||
B --> C["RenderFramePacket"]
|
||||
C --> D["CultRenderFrame"]
|
||||
X["audio-state.msgpack"] --> Y["audio event overlay"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue