Skip to content

IP Camera Motion Detection with Telegram Alerts is a Python-based security tool that monitors a specified region of an IP camera feed for motion and sends real-time alerts via Telegram.

License

Notifications You must be signed in to change notification settings

whitehatboy005/Motion-Detection-Alert-System-for-CCTV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📸 IP Camera Motion Detection with Telegram Alerts

License

This repository contains two main tools:

  1. ROI Selector Tool: A graphical tool to help users easily select a Region of Interest (ROI) from the screen.
  2. IP Camera Motion Detection Tool: A CCTV-like system that monitors an IP camera feed for motion within the defined ROI and sends alerts via Telegram.

🚀 Features

1. ROI Point Finder Tool:

  • Graphically select the Region of Interest (ROI) on your screen.
  • Print the start and end coordinates of the ROI for use in motion detection.
  • Simplifies the process of defining an ROI for motion detection.

2. IP Camera Motion Detection Tool:

  • Monitor an IP camera stream: Detect motion in a specified area of the video feed (ROI).
  • Send Telegram alerts: When motion is detected, a snapshot of the frame is sent to a Telegram chat.
  • Configurable settings: Set up the Telegram Bot Token, IP Camera URL, and ROI coordinates via environment variables.
  • Efficient motion detection: Only monitors motion within the defined ROI to minimize unnecessary alerts.

📌 Instructions

To get Chat ID visit @GetMyChatID_Bot Now you will copy the chat Id and config it.

To access the bot @SecurityAlertBot and START it.

Start the Telegram Bot

Screenshot 2024-12-13 104535

Program Running interface

Screenshot 2024-12-13 104848

Telegram Bot Alert

Screenshot 2024-12-13 111934

⚙️ Installation

Clone the Repository

git clone https://github.com/whitehatboy005/Motion-Detection-Alert-System-for-CCTV
cd Motion-Detection-Alert-System-for-CCTV

Install Dependencies

pip install -r requirements.txt

Find ROI Point for alert zone

python ROI_point_finder.py

Configure Environment Variables

notepad config.env

Ensure start the bot

Start it --> @SecurityAlertBot

Run the main Program

python CCTV_Alert.py

To check on configuration in Telegram

Type [/check] Then check it out.

WEBCAM Motion Detection Alert System Repository for project submission

Check on this repository https://github.com/whitehatboy005/Motion-Detection-Alert-System-for-Webcam

👨‍💻 Contribution:

Contributions are welcome! If you have any suggestions for improvements or bug fixes, feel free to submit a pull request.

📝 License

This project is licensed under the terms of the MIT license.

About

IP Camera Motion Detection with Telegram Alerts is a Python-based security tool that monitors a specified region of an IP camera feed for motion and sends real-time alerts via Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages