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"]
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ Ownership:
|
|||
lowering, render budgeting, and Spout2 publication.
|
||||
- CultNet typed documents carry status/control/process state. JSON is schema or
|
||||
diagnostic export only.
|
||||
- `scripts/live_sensor_fusion.py`, Python fallback producers, JSON LOD stores,
|
||||
- `scripts/diagnostic_live_sensor_fusion.py`, Python fallback producers, JSON LOD stores,
|
||||
and `localcast.diagnostics.spout_output` are diagnostics/migration fossils.
|
||||
They must not be extended as production surfaces.
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ The useful next work is foundation surgery, not hardware feature expansion:
|
|||
|
||||
- rewrite `native/reservoir` as one rolling buffer with typed indexes/views
|
||||
- update ABI and tests around single-edge retention
|
||||
- quarantine or delete production use of `scripts/live_sensor_fusion.py` and the OpenGL `spout_output` sink
|
||||
- quarantine or delete production use of `scripts/diagnostic_live_sensor_fusion.py` and the OpenGL `spout_output` sink
|
||||
- route future visual/audio runtime work through Aquarium/Faust/native runtime plus typed CultNet docs
|
||||
- keep FFmpeg/SRT bridge scripts only as simple LAN ingest and capture utilities
|
||||
|
||||
|
|
|
|||
|
|
@ -54,3 +54,4 @@
|
|||
{"ts": "2026-05-19T07:39:41+00:00", "type": "decision", "status": "ok", "note": "Native rebuild cut line recorded: live path must abandon Python producers, OpenGL Spout sink, JSON live stores, and independent typed rings; next foundation is one native rolling reservoir with typed indexes/views feeding Aquarium, Faust, OBS, and typed CultNet docs."}
|
||||
{"ts": "2026-05-19T07:52:44+00:00", "type": "implementation", "status": "ok", "note": "Native reservoir first cut complete: native/reservoir now uses one time-ordered rolling buffer with typed views, total/view length ABI, latest-by-kind/source lookup, and tests proving single-edge expiry plus stale late-sample exclusion. Python/OpenGL bridge remains next quarantine target."}
|
||||
{"ts": "2026-05-19T07:57:59+00:00", "type": "implementation", "status": "ok", "note": "OpenGL Spout sink quarantined: localcast.sensor_fusion no longer exports spout_output surfaces; the old SpoutGL renderer now lives under localcast.diagnostics.spout_output and scripts/stream_spout imports it as diagnostic/migration code only."}
|
||||
{"ts": "2026-05-19T08:01:04+00:00", "type": "implementation", "status": "ok", "note": "Python visual producer quarantined by name: scripts/live_sensor_fusion.py is now scripts/diagnostic_live_sensor_fusion.py, tests/docs import the diagnostic path, and future native/Aquarium work should delete or split its pure pieces rather than extend it."}
|
||||
|
|
|
|||
|
|
@ -298,7 +298,7 @@ current_status:
|
|||
source time ranges, intended visual presentation time, audio-alignment
|
||||
time, target render size, Spout sender name, and point draw metadata for
|
||||
Aquarium/Spout. A deadline OBS Spout sender is now live-shaped:
|
||||
`scripts/live_sensor_fusion.py` now writes fused render frames into typed
|
||||
`scripts/diagnostic_live_sensor_fusion.py` now writes fused render frames into typed
|
||||
CultCache state at `calibration/runs/visual-state.msgpack`. `scripts/stream_spout.py`
|
||||
consumes that CultCache document, lowers points into compact anisotropic
|
||||
screen brush packets, uploads an OpenGL texture, publishes Spout sender
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ from localcast.diagnostics.spout_output import (
|
|||
point_prefix_counts,
|
||||
rasterize_frame_rgba,
|
||||
)
|
||||
from scripts.live_sensor_fusion import (
|
||||
from scripts.diagnostic_live_sensor_fusion import (
|
||||
DEFAULT_RESERVOIR_NS,
|
||||
LiveClapCalibrator,
|
||||
evidence_in_reservoir,
|
||||
|
|
|
|||
Loading…
Reference in a new issue