Downloads · 30 days
47
20% of all-time downloads
Davidsv/CourtSide-Computer-Vision-v0.1
CourtSide-Computer-Vision-v0.1 is a object detection model from Davidsv. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as mit.
Fine-tuned YOLOv11n model for detecting tennis balls in images and videos. Part of the CourtSide Computer Vision suite for comprehensive tennis match analysis.
Downloads · 30 days
47
20% of all-time downloads
All-time downloads
234
Public
Repo size
6.5 MB
Likes
3
Public
Click a slice to open those files.
.pt5.5 MB · 84%
From the Hugging Face model README
Fine-tuned YOLOv11n model for detecting tennis balls in images and videos. Part of the CourtSide Computer Vision suite for comprehensive tennis match analysis.

tennis_ball)Evaluated on validation set (62 images):
| Metric | Value |
|---|---|
| mAP@50 | 67.87% |
| mAP@50-95 | 24.93% |
| Precision | 84.3% |
| Recall | 59.5% |
| Inference Speed (M4 Pro) | 10.3ms |
This model was trained on the Tennis Ball Detection Dataset by Viren Dhanwani, available on Roboflow Universe.
Model: YOLOv11n (nano)
Epochs: 100
Batch size: 16
Image size: 640x640
Device: Apple M4 Pro (MPS)
Optimizer: AdamW
Learning rate: 0.001 → 0.01
Training time: ~23 minutes
pip install ultralytics
from ultralytics import YOLO
from PIL import Image
# Load CourtSide Computer Vision model
model = YOLO('courtsidecv_v0.1.pt')
# Predict on image
results = model.predict('tennis_match.jpg', conf=0.3)
# Display results
results[0].show()
# Get bounding boxes
for box in results[0].boxes:
x1, y1, x2, y2 = box.xyxy[0]
confidence = box.conf[0]
print(f"Ball detected at [{x1:.0f}, {y1:.0f}, {x2:.0f}, {y2:.0f}] with {confidence:.2%} confidence")
from ultralytics import YOLO
model = YOLO('courtsidecv_v0.1.pt')
# Process video
results = model.predict(
source='tennis_match.mp4',
conf=0.3,
save=True,
save_txt=True
)
# Predict on image
yolo detect predict model=courtsidecv_v0.1.pt source=image.jpg conf=0.3
# Predict on video
yolo detect predict model=courtsidecv_v0.1.pt source=video.mp4 conf=0.3 save=True
# Validate model
yolo detect val model=courtsidecv_v0.1.pt data=dataset.yaml
# Balanced (recommended)
conf_threshold = 0.30 # Confidence threshold
iou_threshold = 0.45 # NMS IoU threshold
max_det = 50 # Maximum detections per image
# High precision (fewer false positives)
conf_threshold = 0.50
iou_threshold = 0.45
max_det = 30
# High recall (detect more balls, more false positives)
conf_threshold = 0.20
iou_threshold = 0.40
max_det = 100
✅ Recommended:
⚠️ Not Recommended:
Precision: 84.3% - When the model detects a ball, it's correct 84% of the time Recall: 59.5% - The model detects approximately 6 out of 10 tennis balls
| Confidence Range | Interpretation |
|---|---|
| > 0.7 | High confidence - very likely a tennis ball |
| 0.5 - 0.7 | Medium confidence - probably a tennis ball |
| 0.3 - 0.5 | Low confidence - possible tennis ball |
| < 0.3 | Very low confidence - likely false positive |
This model is part of the CourtSide Computer Vision project, a comprehensive tennis analysis system featuring:
If you use this model, please cite:
@misc{courtsidecv_v0.1_2024,
title={CourtSide Computer Vision v0.1: Tennis Ball Detection with YOLOv11},
author={Vuong},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/...}}
}
This model was trained using the Tennis Ball Detection dataset. Please cite:
@misc{tennis-ball-detection_dataset,
title = {tennis ball detection Dataset},
type = {Open Source Dataset},
author = {Viren Dhanwani},
howpublished = {\url{https://universe.roboflow.com/viren-dhanwani/tennis-ball-detection}},
url = {https://universe.roboflow.com/viren-dhanwani/tennis-ball-detection},
journal = {Roboflow Universe},
publisher = {Roboflow},
year = {2023},
month = {feb},
note = {visited on 2024-11-20}
}
MIT License - Free for commercial and academic use.
For questions, issues, or collaboration:
Coming soon in the CourtSide Computer Vision suite:
Model Size: 5.4 MB
Inference Speed: 10-65ms (device dependent)
Supported Formats: PyTorch (.pt), ONNX, TensorRT, CoreML
🎾 Ready for production use in tennis analysis applications!