Maxwelli/tennis-ball-detection
By Maxwelli · ↓ 11 · ♥ 0 · Updated 2026-03-03
What's in this repo
This page lists the files in Maxwelli/tennis-ball-detection, including best.onnx.
- 1 ONNX models (.onnx files)
- 4 files, including 1 .md, 1 .onnx, 1 .pt
- Last updated 2026-03-03
ONNX files
| File | Size | Download |
|---|---|---|
| best.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Tennis Ball Detection with YOLOv8
This repository contains a YOLOv8n model fine-tuned specifically to detect tennis balls.
Project Overview
The goal is to accurately detect and localize tennis balls in images and video streams using the YOLOv8 object detection framework.
Requirements
- Python 3.8+
- Ultralytics YOLOv8
- PyTorch
- OpenCV
Installation
Install dependencies with:
pip install ultralytics opencv-python
Usage
Detect tennis balls in an image:
yolo task=detect mode=predict model=tennisball.pt source=your_image.jpg
Detect tennis balls in video/webcam:
yolo task=detect mode=predict model=tennisball.pt source=0 # webcam
License
This project is open-source under the Apache License 2.0 License.
Model info
Created: 2026-03-03
Updated: 2026-03-03
View on Hugging FaceFiles (4)
Related models
More from Maxwelli
No other models by this author.