Skip to content

Commit 957d8dd

Browse files
authored
Merge pull request #1 from connerkward/claude/review-documentation-5ki2t
Reorganize project structure and improve documentation
2 parents 450ab53 + 82ce5da commit 957d8dd

3 files changed

Lines changed: 22 additions & 12 deletions

File tree

PyBas3/TECHNICAL_REFERENCE.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,29 +51,42 @@ Modular system for interactive projection mapping with multi-person pose trackin
5151
PyBas3/
5252
├── TECHNICAL_REFERENCE.md # This file
5353
├── requirements.txt
54+
├── orchestrator.py # Main entry point for running full system
55+
├── participants_db.json # UUID persistence (atomic writes)
56+
├── zone_config.json # Master zone configuration
5457
├── agents/ # Coordination docs
5558
│ ├── SESSION.md # Quick reference
56-
│ └── ...
59+
│ └── AGENT_0_SHARED.md # Shared protocols
5760
├── common/ # Shared protocols & constants
5861
│ ├── __init__.py
5962
│ ├── protocols.py # Data structures & constants
6063
│ └── shared_memory.py # Binary protocol encoding/decoding
6164
├── mediapipe/ # Process 1
6265
│ ├── multi_person_detector.py
66+
│ ├── participant_tracker.py # pHash UUID assignment
6367
│ ├── ndi_streamer.py
6468
│ ├── shared_memory_writer.py
65-
│ ├── zone_config.json
66-
│ └── participants_db.json
69+
│ ├── live_dashboard.py # Real-time monitoring
70+
│ └── zone_config.json # Runtime zone config
6771
├── scoring/ # Process 2
6872
│ ├── pose_scorer.py
6973
│ ├── reference_builder.py
7074
│ ├── shared_memory_reader.py
7175
│ └── output/participant_<uuid>_score.json
72-
├── pre_render/ # Offline pipeline (migrated)
73-
│ ├── depth_blend_video.py
74-
│ └── frames_to_video.py
75-
└── td_scripts/ # TouchDesigner (migrated)
76-
└── ConnerTD/ConnerTD.toe
76+
├── pre_render/ # Offline pipeline
77+
│ ├── depth_blend_video.py # Main processing script
78+
│ ├── frames_to_video.py
79+
│ ├── generate_chronophoto_variations.py
80+
│ ├── pose_skeleton_render.py
81+
│ └── CHRONOPHOTO_CONTEXT.md
82+
├── td_scripts/ # TouchDesigner integration
83+
│ ├── td_integration.py # Main TD API
84+
│ ├── td_participant_manager.py
85+
│ ├── ndi_discovery.py
86+
│ ├── score_watcher.py
87+
│ └── ConnerTD/ConnerTD.toe
88+
└── tests/
89+
└── test_integration.py
7790
```
7891

7992
---

PyBas3/pre_render/CHRONOPHOTO_CONTEXT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Three blend modes are generated in parallel:
3737

3838
1. **Initial approach**: Created chronophoto variations script with different frame counts (3, 5, 7, 10) and selection strategies (sequential, most different, high variance)
3939
2. **Depth map composites**: Initially tried compositing depth maps onto raw frames, but user wanted raw frame composites only
40-
3. **Pipeline integration**: Added as separate pass that runs after prerequisite passmes (depth maps, frame loading)
40+
3. **Pipeline integration**: Added as separate pass that runs after prerequisite passes (depth maps, frame loading)
4141
4. **Parallelization**: Process blend modes in parallel for efficiency
4242
5. **Full frame usage**: For long_exposure mode, use ALL frames to get continuous trail effect (not just subset)
4343

openmemory.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
- `PyBas3/scoring` reads shared memory poses and writes per-participant score JSON files.
1111
- `PyBas3/td_scripts` consumes NDI + score JSONs for TouchDesigner integration.
1212

13-
## User Defined Namespaces
14-
-
15-
1613
## Components
1714
- `MultiPersonDetector` (`PyBas3/mediapipe/multi_person_detector.py`): orchestrates MediaPipe detection, zone filtering, UUID assignment, shared memory writes, and NDI streaming.
1815
- `ParticipantTracker` (`PyBas3/mediapipe/participant_tracker.py`): computes face-based pHash, matches/creates UUIDs, persists to `participants_db.json`.

0 commit comments

Comments
 (0)