Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

End to End Basic object Detection using Open CV

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
![image](Main/out/image3.png)
![image](Main/out/image2.png)

## Output
![image](Main/out/image.png)
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.