It is a sophisticated fall detection system implemented in Python, utilizing YOLOv8 object detection for precise identification of falls in video streams. Upon detecting a fall, it promptly sends alerts via Telegram, including an image of the incident for added context. This system finds applications in elderly care facilities, public safety, and home monitoring, offering swift assistance and peace of mind to caregivers and family members. Compared to human monitoring, AlertWatch boasts superior speed, consistency, scalability, and accuracy, making it a highly efficient solution for ensuring the safety of individuals in various environments.
After setting up the Telegram Bot.
-
Clone the repository:
git clone
-
Install the required dependencies:
pip install -r requirements.txt
Important
To send message to your Telegram ID, first create your own bot on Telegram using BotFather. Then, paste your bot token and chat ID into the designated variables in the main.py file. Only after completing this step will you be able to run main.py to receive alert notifications.
-
Run the
main.py
script:python main.py
-
Press
t
to exit the application.
fall.mp4
: Input video file containing test footage to be analyzed.telegram_bot_token
: Telegram bot token used for sending notifications [create your own bot and feed the bot token to get message to your phone].chat_id
: Chat ID of the recipient for Telegram notifications.
- OpenCV
- cvzone
- ultralytics YOLO
- requests