A home security system which utilises both face detection and motion detection system. When an intruder is detected, the system sends an alert to the owner remotely.
Existing security solutions often require complex and expensive setups. This project aims to bridge the gap by providing an accessible and efficient security system tailored to homeowners' needs, by focusing on motion and face detection.
Our home security system boasts the following features:
- Motion detection: The motion detection system tracks movements and alerts the face detection system if significant motion is detected.
- Face detection: The face detection feature utilizes ArcFace, a powerful deep learning model widely employed in face recognition tasks. ArcFace, known for its effectiveness in facial analysis, leverages convolutional neural networks (CNNs) to accurately detect and compare facial features within images or videos. In our project, when a face is detected, ArcFace captures a photo and performs a comparison against a database of unknown faces. If a face is not detected or fails to find a match, the alert system is activated.
- Telegram integrated alert system: When activated, the alert system sends real-time information to the owner. The information includes the captured photo and the date and time when the photo was taken. The owner can then take action accordingly.
To install and use the home security system, follow these steps:
- Clone the repository:
git clone https://github.com/srivenkatharsha/Home-Security-System.git
- Create a virtual environment using the following command:
- For Windows:
python -m venv venv
- For macOS/Linux:
python3 -m venv venv
- For Windows:
- Activate the virtual environment:
- For Windows:
venv\Scripts\activate
- For macOS/Linux:
source venv/bin/activate
- For Windows:
- Install the required dependencies:
pip install -r requirements.txt
- Create an environment file named
.env
and add the following contents:BOT_TOKEN=<your_bot_token> SYSTEM_OWNER_TELEGRAM_ID=<your_telegram_id>
- Create a folder named "Known" and place the "Known.PNG" file inside it.
- Create a folder named "Unknown".
- In one terminal, run the following command to start the motion detector script (project root directory):
python SensitiveMotionDetector.py
- In another terminal, run the following command to start the Telegram bot script (project root directory):
python Bot/telegram_bot.py