Skip to content

An end-to-end solution that detects accidents in images and triggers emergency responses using AI. Built for rapid emergency response integration and smart city applications.

Notifications You must be signed in to change notification settings

irkky/AI-powered-Accident-Detection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚨 AI-Powered Accident Detection System

Python 3.8+ Streamlit

An intelligent system that detects accidents in images using AI and triggers emergency responses. Designed for smart cities, traffic monitoring, and rapid emergency coordination.

🌟 Key Features:

  • AI Accident Detection
    Gemini Powered by Google's Gemini API
  • Emergency Coordination
    Maps Finds nearest hospitals via Google Places API
  • Instant Alerts
    Twilio SMS notifications via Twilio
  • Privacy-First
    Security Auto-deletes images after processing

🛠️ Tech Stack:

Component Technology
AI Engine Google Gemini API
Hospital Lookup Google Places API
SMS Service Twilio
Web Interface Streamlit
Core Language Python 3.8+
Configuration TOML + .env

Dependencies:

streamlit==1.31.1
Pillow==10.2.0
python-dotenv==1.0.0
twilio==8.3.0
langchain==0.1.11
langchain-google-genai==0.0.11
pydantic==2.6.1

Quick Start:

Prerequisites

  • Python 3.8+
  • API Keys:
    • Google Gemini API
    • Google Places API
    • Twilio Account

Installation:

# Create virtual environment
python -m venv venv
# Activate environment
# Linux/macOS:
source venv/bin/activate
# Windows:
.\venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt

Usage:

streamlit run app.py

Project Structure:

accident_detection_app/
├── config/
│   ├── __init__.py
│   └── config_manager.py
├── services/
│   ├── accident_detector.py
│   ├── hospital_service.py
│   └── sms_service.py
├── .env
├── config.toml
├── app.py
└── requirements.txt

About

An end-to-end solution that detects accidents in images and triggers emergency responses using AI. Built for rapid emergency response integration and smart city applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages