Skip to content

BaoHan1712/Camera-AI-phong-chong-chay-va-chua-chay-PC07

Repository files navigation

🔥 AI Smart Fire Alert System

Version License

Python Flask OpenCV Docker YOLO

FeaturesInstallationUsageAPIContributing

🎯 Overview

The AI Smart Fire Alert System is an intelligent fire alert system integrated with AI, allowing early detection and warning of fire hazards through a surveillance camera system.

Main Capabilities

  • 🔍 Fire Detection - Accurately identifies flames.
  • 💨 Smoke Detection - Early warning upon smoke detection.
  • 🚬 Behavior Monitoring - Detects smoking behavior in prohibited areas.
  • Real-time Alerts - Immediate notifications through multiple channels.
  • 📸 Intelligent Storage - Automatically stores alert images to the cloud.

🔄 Workflow

graph TD
    A[Camera Input] --> B[Frame Processing]
    B --> C{AI Detection}
    C -->|Fire| D[Fire Alert]
    C -->|Smoke| E[Smoke Warning] 
    C -->|Smoking| F[Behavior Warning]
    D & E & F --> G[Capture Image]
    G --> H[Upload to S3]
    H --> I[Send Alert API]
    I --> J[Update UI]
    style A fill:#f9f,stroke:#333
    style C fill:#bbf,stroke:#333
    style D,E,F fill:#f96,stroke:#333
Loading

⚙️ Technical Specifications

Metric Value
Processing Speed 50+ FPS (GPU)
Accuracy >90%
Alert Delay <1s
Supported Cameras Unlimited

🛠️ Technology Stack

AI/ML Backend Frontend DevOps
• CNN
• OpenCV
• Pytorch
• Python
• Flask
• RESTful API
• HTML5
• CSS3
• JavaScript
• Docker
• AWS S3
• CI/CD

📚 API Documentation

Base URL

https://api.fire-alert.com/v1

Endpoints

Method Endpoint Description
GET /video_feed/{camera_id} Stream camera feed
POST /cameras Add a new camera
DELETE /cameras/{id} Delete a camera
GET /alerts/{camera_id} Check for fire alerts
GET /warnings/{camera_id} Check for smoke and behavior warnings

📝 License

Copyright © 2024 BaoHan1712.
This project is licensed under the MIT license.


Built with ❤️ by BaoHan1712

About

stream nhiều camera cùng 1 lúc, phát hiện lửa và khói, hành động xảy ra cháy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published