https://github.com/ayu-ano/basic_object-detection
End to End Basic object Detection using Open CV
https://github.com/ayu-ano/basic_object-detection
background-substraction-algorithm cv2 masking math mixture-of-gaussians numpy python3
Last synced: 2 months ago
JSON representation
End to End Basic object Detection using Open CV
- Host: GitHub
- URL: https://github.com/ayu-ano/basic_object-detection
- Owner: ayu-ano
- Created: 2024-03-13T16:11:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T18:27:26.000Z (almost 2 years ago)
- Last Synced: 2025-10-05T11:42:37.761Z (9 months ago)
- Topics: background-substraction-algorithm, cv2, masking, math, mixture-of-gaussians, numpy, python3
- Language: Python
- Homepage:
- Size: 10.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Object Detection using OpenCV
This repository contains code for basic object detection using OpenCV in Python. The code uses a simple background subtraction technique along with Euclidean distance-based tracking to detect and track objects in a video stream.
## Prerequisites
Make sure you have the following dependencies installed:
- Python 3.x
- OpenCV
- NumPy
## Vehicle Detection


## Output

This script will use a pre-recorded video (`highway2.mp4`), apply background subtraction, detect objects, and track them using Euclidean distance.
## Customization
You can modify the following parameters in the `main.py` script:
- ROI (Region of Interest): Adjust the ROI to focus on a specific area in the video frame.
- Thresholds: Modify the thresholds used in background subtraction and contour detection to improve object detection accuracy.
- Keybindings: Press 'ESC' to exit the application.
## Acknowledgments
- Inspired by the [OpenCV](https://opencv.org/) library.