ITADN

Community Plugin: sportvision — sports analytics workflow blocks

#2055ClosedMohibShaikh 创建于 2026-02-28
M
MohibShaikhcommented
## Plugin: sportvision **PyPI:** https://pypi.org/project/sportvision/ **GitHub:** https://github.com/MohibShaikh/sportvision ### What it does `sportvision` is a sports analytics toolkit that ships 4 Roboflow Workflow blocks: | Block | Type | Description | |-------|------|-------------| | **Sports Detection Filter** | `sportvision/sports_detection_filter@v1` | Filters COCO detections to sports classes (player=0, ball=1) | | **Team Classifier** | `sportvision/team_classifier@v1` | Clusters players into teams by jersey color (KMeans on HSV histograms). Supports periodic refitting via `refit_every`. | | **Possession Tracker** | `sportvision/possession_tracker@v1` | Tracks ball possession per team over time. Warns when `team_id` is missing. | | **Distance Calculator** | `sportvision/distance_calculator@v1` | Cumulative distance per tracked player. Supports `homography_matrix` for field-unit distances. | ### Compatibility - Tested with `inference==1.0.2` - Execution engine compatibility: `>=1.0.0,<2.0.0` - Uses real inference types (`WorkflowBlock`, `WorkflowBlockManifest`, `OutputDefinition`, etc.) - Falls back to lightweight shims when inference is not installed ### Installation & activation \`\`\`bash pip install "sportvision[workflows]" export WORKFLOWS_PLUGINS="sportvision.workflows" \`\`\` ### Structure Follows the recommended plugin structure: - `load_blocks()` returns all 4 block classes - `load_kinds()` returns custom `SPORTS_DETECTION_KIND` - Each block has a Pydantic manifest with `describe_outputs()` and `get_execution_engine_compatibility()` - 28 passing tests (unit + integration with real video) ### Request Would love to be listed as a community workflow plugin if there's a directory or docs page for third-party plugins. Happy to adjust anything to meet your standards.
关闭于 2026-03-28 5 条评论