This repository contains a simple motion detection script using OpenCV. The script captures video from the webcam and detects significant changes in the frame, triggering an alarm when motion is detected.
- Detects motion in the video feed.
- Triggers an audible alarm when motion is detected.
- Switches between normal and alarm mode with a keypress.
- Adjustable sensitivity and frame size.
- Python 3.x
- OpenCV
- imutils
- Clone the repository:
git clone https://github.com/yourusername/motion-detection-security-system.git cd motion-detection-security-system
- Install the required packages:
pip install -r requirements.txt
-Press t to toggle alarm mode. -Press q to quit the application.
You can adjust the frame size and alarm sensitivity by modifying the respective variables in the script.