Skip to content

Motion detection using OpenCV: A Python script that utilizes OpenCV for real-time motion detection in video files, highlighting moving objects with bounding boxes.

Notifications You must be signed in to change notification settings

bharambetr2002/Motion-Detection-using-OpenCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

pip install opencv-python

Contributors

Tanmay Bharambe

About

Motion detection using OpenCV: A Python script that utilizes OpenCV for real-time motion detection in video files, highlighting moving objects with bounding boxes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages