https://github.com/bharambetr2002/motion-detection-using-opencv
Motion detection using OpenCV: A Python script that utilizes OpenCV for real-time motion detection in video files, highlighting moving objects with bounding boxes.
https://github.com/bharambetr2002/motion-detection-using-opencv
opencv pyhton3
Last synced: about 2 months ago
JSON representation
Motion detection using OpenCV: A Python script that utilizes OpenCV for real-time motion detection in video files, highlighting moving objects with bounding boxes.
- Host: GitHub
- URL: https://github.com/bharambetr2002/motion-detection-using-opencv
- Owner: bharambetr2002
- Created: 2023-04-23T15:05:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T18:20:05.000Z (over 2 years ago)
- Last Synced: 2025-04-08T17:21:27.218Z (about 1 year ago)
- Topics: opencv, pyhton3
- Language: Python
- Homepage:
- Size: 11.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Motion Detection using OpenCV
This Python project uses OpenCV to detect motion in a video file and draws bounding boxes around moving objects. It's a simple yet practical example of motion detection for various applications, including surveillance, security, and more.
## Features
- Motion detection using frame differencing and thresholding.
- Bounding boxes drawn around moving objects.
- Real-time monitoring of detected moments.
- User-friendly and easily customizable.
## How it Works
The code uses the following steps to detect motion in a video:
- Load a video file.
- Initialize the first frame and preprocess it.
- Continuously read frames, apply motion detection, and draw bounding boxes.
- Display the frames in real-time with detected moments.
## Prerequisites
Before running the code, make sure you have the following dependencies installed:
- Python 3.x
- OpenCV (Open Source Computer Vision Library)
You can install OpenCV using pip:
```shell
pip install opencv-python
```
## Contributors
[Tanmay Bharambe](https://github.com/bharambetr2002)