Add per-ball trajectory color to shot serialization proto #289
Reference in New Issue
Block a user
No description provided.
Delete Branch "ball-trajectory-colors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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— repeatedColorCluster.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