https://github.com/ezhil56x/motion-detection-alarm-opencv
Motion Detection Alarm is a Python-based system that uses OpenCV and detects motion in real-time video and triggers an alarm while sending email notifications. It provides adjustable sensitivity and serves as a reliable security solution.
https://github.com/ezhil56x/motion-detection-alarm-opencv
motion-detection motion-detection-opencv
Last synced: 4 months ago
JSON representation
Motion Detection Alarm is a Python-based system that uses OpenCV and detects motion in real-time video and triggers an alarm while sending email notifications. It provides adjustable sensitivity and serves as a reliable security solution.
- Host: GitHub
- URL: https://github.com/ezhil56x/motion-detection-alarm-opencv
- Owner: ezhil56x
- License: mit
- Created: 2023-07-14T13:20:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-14T13:21:03.000Z (almost 2 years ago)
- Last Synced: 2025-01-28T10:44:35.651Z (4 months ago)
- Topics: motion-detection, motion-detection-opencv
- Language: Python
- Homepage:
- Size: 550 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Motion Detection Alarm
This project implements a motion detection alarm system using Python and OpenCV. It starts monitoring the webcam when it is activated and sounds an alarm when motion is detected. It also sends an email notification to the user when motion is detected with few images of the motion. The user can adjust the motion detection sensitivity and the email notification settings.
## Features
- Real-time motion detection using computer vision techniques
- Adjustable motion detection sensitivity
- Emergency alarm when motion is detected
- Send email notification when motion is detected with few images of the motion
- Simple and intuitive user interface## Requirements
- Python 3.x
- OpenCV
- NumPy
- imutils
- winsound (for Windows users)
- Mail (custom module for sending emails)## Installation
1. Clone the repository
```
git clone https://github.com/ezhil56x/Motion-Detection-Alarm-OpenCV.git
```2. Install the dependencies
```
pip install opencv-python numpy imutils
```3. Configure the email settings in `mail.py`
```
sender_email = "your_email_address"
sender_password = "your_email_password"
recipient_email = "recipient_email_address"
```4. Run the application
```
python main.py
```5. A window will appear with the webcam feed. Press 't' to activate/deactivate the motion detection alarm. Press 'q' to quit the application.