Instructions to use Davidsv/football_insight with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Davidsv/football_insight with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("Davidsv/football_insight") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
| """ | |
| Football Analysis - Utility modules | |
| """ | |
| from .colors import ColorPalette, get_team_color, interpolate_color | |
| from .geometry import ( | |
| calculate_distance, | |
| calculate_angle, | |
| point_in_polygon, | |
| line_intersection, | |
| smooth_trajectory | |
| ) | |
| from .video_utils import ( | |
| get_video_info, | |
| resize_frame, | |
| create_video_writer | |
| ) | |
| __all__ = [ | |
| 'ColorPalette', | |
| 'get_team_color', | |
| 'interpolate_color', | |
| 'calculate_distance', | |
| 'calculate_angle', | |
| 'point_in_polygon', | |
| 'line_intersection', | |
| 'smooth_trajectory', | |
| 'get_video_info', | |
| 'resize_frame', | |
| 'create_video_writer' | |
| ] | |