Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An end-to-end tennis video analysis system leveraging Ultralytics YOLOv8 for player and ball detection, multi-object tracking across frames, and a custom CNN for court keypoint extraction, providing data-driven insights into player movement, ball trajectories, and match dynamics using advanced computer vision and deep learning techniques.

NotificationsYou must be signed in to change notification settings

drissiOmar98/Tennis-Vision-AI-Tracking

Repository files navigation

Anend-to-end, production-grade tennis video analysis system leveraging state-of-the-art computer vision and deep learning. This repository integratesUltralytics YOLOv8 for robust player detection and tracking, a fine-tuned model forhigh-velocity ball detection, and acustom ResNet50-based CNN for precise court keypoint extraction. The system transforms raw match video intophysics-aware metrics (e.g., shot speed, per-player distance covered, trajectory reconstructions) andtactical visualizations suitable for coaching, scouting, and advanced analytics workflows.


🌟 Executive Summary

Tennis-Vision-AI solves the complex computer vision challenges inherent to court sports analytics: maintainingpersistent player identity during rapid interactions, detectinghigh-velocity, small-object balls amidst motion blur, and establishing ageometrically accurate mapping from video pixels to real-world court coordinates.

The system is engineered fordeterminism and auditability—from annotated training sets and serialized model weights to final exported telemetry—making it suitable for bothacademic research andapplied deployment in professional sports environments.


🚀 Core Capabilities

FeatureDescriptionKey Benefit
🎯 Dual-Model DetectionSeparate YOLOv8 (players) and fine-tuned YOLOv5 (ball) models.Optimized precision for both large, persistent objects and small, fast-moving ones.
🧭 Identity-Aware TrackingDeepSORT-inspired tracking withpersist=True on player detections.Stable Track IDs enable accurate per-player metric aggregation over entire rallies.
📐 Court Coordinate RegressionResNet50 backbone outputs 14 (x, y) court keypoints for homography estimation.Enables pixel→meter transformation and bird's-eye-view generation without manual court tagging.
⚡ Trajectory ReconstructionRolling-window smoothing + intelligent interpolation for ball path.Produces continuous, physically plausible ball trajectories even with transient detection loss.
🧮 Physics-Aware MetricsCalculates shot speed (km/h), player distance (m), court coverage (%) from calibrated coordinates.Delivers actionable, validated insights comparable to radar/lidar systems.
🗺️ Tactical VisualizationLive mini-court overlay, player heatmaps, and shot spray charts.Provides immediate visual feedback and strategic overviews.
🧰 High-Velocity Stub SystemSerialize/deserialize detection outputs to.pkl for rapid iteration.Decouples CV development from analytics/UI work, slashing iteration time.
📦 Multi-Format ExportAnnotated MP4, frame-by-frame CSV, structured JSON telemetry, static plots.Facilitates integration with existing databases, dashboards, and coaching software.

📊 Data & Datasets

To ensure high-precision tennis analytics, this project relies on carefully curated datasets forball detection,player tracking, andcourt keypoint regression.

🎾 Ball Dataset

  • Exported fromRoboflow with ~428 annotated images used for fine-tuning.
  • Captures challenging conditions:motion blur, varyinglighting, andpartial occlusions.
  • Optimized forhigh-velocity small-object detection.

🏃 Player Dataset

  • Based on standardperson/player annotations, adapted to tennis-specific viewpoints.
  • Handlesclose-contact scenarios andocclusions typical of tennis matches.

📐 Court Keypoint Annotations

  • 14 labeled points per frame representing canonical court lines and intersections.
  • Enablesaccurate homography-like mapping from video pixels → real-world court coordinates.

✅ Best Practices

  • Maintaintrain/validation/test splits, plus a dedicatedevaluation set withhigh-velocity rallies.
  • Ensure dataset balance across:
    • Camera angles
    • Court surfaces
    • Lighting conditions
  • This supports robustgeneralization for diverse match scenarios.

About

An end-to-end tennis video analysis system leveraging Ultralytics YOLOv8 for player and ball detection, multi-object tracking across frames, and a custom CNN for court keypoint extraction, providing data-driven insights into player movement, ball trajectories, and match dynamics using advanced computer vision and deep learning techniques.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp