tennis-ball-detection
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: pavankumart18
- License: agpl-3.0
- Language: Python
- Default Branch: main
- Size: 38.8 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
Tennis Ball Detection using YOLOv5 and Streamlit
This project demonstrates real-time tennis ball and player detection from video input using a custom-trained YOLOv5 model. The application is built with Streamlit for an interactive user interface.
Features
- Upload video files for processing
- Displays the progress of object detection
- Shows output video with tennis ball and player detection after processing
Setup Instructions
1. Clone the Repository
bash
git clone <repository-url>
cd yolov5
2. Install Dependencies
Make sure you have Python installed. Then, install the required libraries:
bash
pip install -r requirements.txt
3. Model Setup
Place the custom-trained YOLOv5 model file in the yolov5/runs/exp/weights/best.pt.
4. Run the Application Locally
Run the following command in the yolov5 directory:
bash
streamlit run app.py
File Structure
yolov5/
app.py # Streamlit application file
runs/
exp/
weights/
best.pt # Trained YOLOv5 model weights
data/ # Contains video input files
Usage
- Launch the Streamlit application.
- Upload a video file in
.mp4format. - Wait for the detection to process; the completion percentage will be displayed.
- After processing, view the output video with detections highlighted.
Example
Upload a sample tennis match video to detect player movements and tennis ball positions, using real-time updates for progress.
Dependencies
- Streamlit
- PyTorch
- OpenCV
- YOLOv5
Owner
- Login: pavankumart18
- Kind: user
- Repositories: 1
- Profile: https://github.com/pavankumart18
GitHub Events
Total
- Issue comment event: 2
- Push event: 11
- Pull request event: 1
- Fork event: 2
- Create event: 5
Last Year
- Issue comment event: 2
- Push event: 11
- Pull request event: 1
- Fork event: 2
- Create event: 5
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/stale v9 composite
- pytorch/pytorch 2.0.0-cuda11.7-cudnn8-runtime build
- gcr.io/google-appengine/python latest build
- matplotlib >=3.3.0
- numpy >=1.22.2
- opencv-python >=4.6.0
- pandas >=1.1.4
- pillow >=7.1.2
- psutil *
- py-cpuinfo *
- pyyaml >=5.3.1
- requests >=2.23.0
- scipy >=1.4.1
- seaborn >=0.11.0
- thop >=0.1.1
- torch >=1.8.0
- torchvision >=0.9.0
- tqdm >=4.64.0
- ultralytics >=8.1.47
- PyYAML >=5.3.1
- gitpython >=3.1.30
- matplotlib >=3.3
- numpy *
- numpy >=1.23.5
- opencv-python >=4.1.1
- opencv-python-headless *
- pandas >=1.1.4
- pillow >=10.3.0
- psutil *
- requests >=2.32.2
- scipy >=1.4.1
- seaborn >=0.11.0
- setuptools >=70.0.0
- streamlit *
- thop >=0.1.1
- torch *
- torchvision >=0.9.0
- tqdm >=4.66.3
- Flask ==2.3.2
- gunicorn ==22.0.0
- pip ==23.3
- werkzeug >=3.0.1
- zipp >=3.19.1
- actions/checkout v4 composite
- actions/setup-python v5 composite
- slackapi/slack-github-action v1.27.0 composite
- contributor-assistant/github-action v2.6.1 composite
- actions/checkout v4 composite
- github/codeql-action/analyze v3 composite
- github/codeql-action/init v3 composite
- actions/checkout v4 composite
- docker/build-push-action v6 composite
- docker/login-action v3 composite
- docker/setup-buildx-action v3 composite
- docker/setup-qemu-action v3 composite
- ultralytics/actions main composite
- actions/checkout v4 composite
- nick-invision/retry v3 composite