https://github.com/imacod3r/ball-detector-opencv
A simple Python script using OpenCV to detect balls in a video stream or camera feed.
https://github.com/imacod3r/ball-detector-opencv
computer-vision opencv python
Last synced: 24 days ago
JSON representation
A simple Python script using OpenCV to detect balls in a video stream or camera feed.
- Host: GitHub
- URL: https://github.com/imacod3r/ball-detector-opencv
- Owner: ImaCod3r
- License: mit
- Created: 2025-05-10T13:16:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-10T13:19:31.000Z (about 1 year ago)
- Last Synced: 2025-07-01T11:09:32.920Z (11 months ago)
- Topics: computer-vision, opencv, python
- Language: Python
- Homepage:
- Size: 2.76 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🎯 Ball Detector (OpenCV)
A simple Python script using OpenCV to detect balls in a video stream or camera feed.
## 📸 Preview
Your browser does not support the video tag.
## 🚀 Getting Started
### ✅ Prerequisites
Make sure you have Python 3.6 or newer installed.
Clone the repository:
```bash
git clone https://github.com/ImaCod3r/ball-detector-opencv.git
cd ball-detector-opencv
```
### 📦 Install Dependencies
```bash
pip install -r requirements.txt
```
### ▶️ Run the Project
```bash
python main.py
```
The script will use your webcam or video file to detect balls in real-time using OpenCV.
### 📁 Project Structure
```
ball-detector-opencv/
├── main.py
├── requirements.txt
├── .github/
│ └── example-video.mp4
└── README.md
```
## 📄 License
This project is licensed under the MIT License.
`Made with ❤️ using Python and OpenCV.`