ci: generate demo frame data in Pages build - #15
Merged
Conversation
Design spec for adding OBB estimation results to the 2D Canvas demo: - LocalTracker (Hungarian matching + ExponentialSmoother per track) - _match_clusters_to_estimates (linear_sum_assignment, gate 6.0m) - _obb_to_dict JSON schema (cx, cy, theta, l, w, corners) - Updated frame snapshot schema with clusters + obb fields - Canvas 8-layer drawing order and legend spec - 6 test cases for OBB structure validation https://claude.ai/code/session_013sQREGvTmjgFT8cyRNmPUL
Implements docs/design/rectangle_visualization.md:
- interactive.py:
- LocalTracker: Hungarian-based frame-to-frame ID management with
per-track ExponentialSmoother (gate 5.0m, alpha 0.4)
- _match_clusters_to_estimates(): linear_sum_assignment centroid
matching with 6.0m gate
- _obb_to_dict(): OBBResult → JSON-serializable dict (cx, cy, theta,
l, w, corners)
- run_once() record_frames=True path now includes clusters and obb
in each frame snapshot
- demo.html:
- Cluster-colored point rendering (6-color palette, falls back to
yellow when no cluster data)
- drawOBB() draws fitted OBB as orange rectangle using corner coords
- Updated legend with OBB entry
- test_interactive.py:
- TestOBBFrameSnapshot with 6 tests covering clusters structure,
obb key presence, 4-corner constraint, positive dimensions,
centre proximity, and missed-frame null guarantee
https://claude.ai/code/session_013sQREGvTmjgFT8cyRNmPUL
generate_demo.py was not called in the CI pipeline, so demo.html had no docs/data/demo_*.json to fetch. Add a build step that runs generate_demo.py --all before uploading the Pages artifact. https://claude.ai/code/session_013sQREGvTmjgFT8cyRNmPUL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
generate_demo.py was not called in the CI pipeline, so demo.html had
no docs/data/demo_*.json to fetch. Add a build step that runs
generate_demo.py --all before uploading the Pages artifact.
https://claude.ai/code/session_013sQREGvTmjgFT8cyRNmPUL