Skip to content

This program uses the Tkinter library to create a user interface that displays the real-time camera feed. It also detects movements in the video stream using the background subtraction method and draws rectangles around the moving objects.

License

Notifications You must be signed in to change notification settings

hajarbenjat/MotionDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-Time Motion Detection

Python License

This program uses the Tkinter library to create a user interface that displays the real-time camera feed. It also detects movements in the video stream using the background subtraction method and draws rectangles around the moving objects.

Prerequisites

  • Python 3.x
  • OpenCV
  • NumPy
  • Pandas
  • Pillow

Installation

  1. Make sure you have Python 3.x installed on your system.
  2. Install the required libraries using the following command:
pip install opencv-python numpy pandas pillow

Usage

  1. Run the program using the following command:
python motion_detection.py
  1. The application will open and display the live feed from your camera.
  2. Moving objects will be detected and surrounded by a green rectangle.
  3. The movement count in the video will be displayed.

Screenshots

gui

^^ my cat ^^

Controls

  • Press the "Escape" key to exit the application.

Notes

  • Ensure that your camera is properly connected and allowed to be used by the application.
  • The program uses the background subtraction algorithm to detect movements. This means any changes in the environment will be considered as movement. Use it in a stable environment for better results.

Author

This program was written by Hajar Benjat.

About

This program uses the Tkinter library to create a user interface that displays the real-time camera feed. It also detects movements in the video stream using the background subtraction method and draws rectangles around the moving objects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages