Add per-ball trajectory color to shot serialization proto #289

Merged
colonelpanic merged 1 commits from ball-trajectory-colors into master 2026-07-10 00:07:45 +00:00
Owner

Summary

Adds per-ball whole-trajectory color to the shot serialization proto so ball colors persist in the serialized paths blob.

  • ColorCluster — one dominant color mode: LAB (OpenCV 0-255 uint8 scale) + fraction (share of the ball's accumulated color pixels, 0-1).
  • TrajectoryColor — repeated ColorCluster.
  • IdentifierHistory.trajectory_color = 3 — new optional field (field number 3 was unused).

Backwards compatible: purely additive proto3 changes. Old blobs parse with the field absent; old readers ignore the new field; shots serialized without color are byte-identical to before. Python gencode regenerated (protoc 24.4 via the gql dev shell); JS/TS artifacts untouched.

Backend consumer: railbird PR #2510.

🤖 Generated with Claude Code

## Summary Adds per-ball whole-trajectory color to the shot serialization proto so ball colors persist in the serialized paths blob. - `ColorCluster` — one dominant color mode: LAB (OpenCV 0-255 uint8 scale) + `fraction` (share of the ball's accumulated color pixels, 0-1). - `TrajectoryColor` — repeated `ColorCluster`. - `IdentifierHistory.trajectory_color = 3` — new optional field (field number 3 was unused). **Backwards compatible:** purely additive proto3 changes. Old blobs parse with the field absent; old readers ignore the new field; shots serialized without color are byte-identical to before. Python gencode regenerated (protoc 24.4 via the gql dev shell); JS/TS artifacts untouched. Backend consumer: railbird PR #2510. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
colonelpanic added 1 commit 2026-07-09 21:01:56 +00:00
Add per-ball trajectory color to shot serialization proto
Some checks failed
Tests / Tests (pull_request) Failing after 10s
d30e8b6eca
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
colonelpanic added 2 commits 2026-07-09 21:46:10 +00:00
Add per-ball trajectory color to shot serialization proto
Some checks failed
Tests / Tests (pull_request) Failing after 10s
d30e8b6eca
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add per-ball trajectory color to shot serialization proto
All checks were successful
Tests / Tests (pull_request) Successful in 11s
a78e793bd6
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
colonelpanic merged commit 361730cace into master 2026-07-10 00:07:45 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: railbird/railbird-gql#289
No description provided.