This repository contains the code and documentation for an AI-ML based intelligent de-smoking/de-hazing algorithm developed for disaster management purposes, specifically aimed at aiding rescue operations during indoor fire hazards. The algorithm is designed to remove smoke and haze from real-time video footage, thereby enhancing visibility in fire-affected areas.
Fire accidents in indoor environments pose significant threats to human life and property. The presence of smoke or haze can severely reduce visibility, hindering rescue operations. To address this challenge, an AI-ML based de-smoking/de-hazing algorithm has been developed to provide clear, enhanced video footage from areas under fire.
The primary objective of this project is to develop a robust algorithm capable of:
- Removing smoke/haze from real-time video footage.
- Enhancing visibility in fire-affected areas.
- Facilitating efficient and safe execution of rescue operations.
This project focuses on the conception and implementation of an AI-ML powered Intelligent De-smoking/De-hazing Algorithm. The algorithm aims to deliver real-time, enhanced video feed from spaces afflicted by fire in indoor environments, thereby augmenting the capabilities of rescue teams and facilitating expedited and more effective response efforts.
The project encompasses the following key phases:
-
Data Collection: Gathering data from controlled fire scenarios and publicly available datasets containing images and videos affected by haze and smoke.
-
Data Preprocessing: Segmentation of smoke/haze affected regions, annotating data, and applying noise reduction and enhancement techniques.
-
Model Design and Training: Utilization of Convolutional Neural Network (CNN) structure for effective smoke and haze removal, extensive training using augmented datasets.
- Real-time Processing: Optimized for real-time applications, processes high-definition video feeds without significant lag.
- Adaptive Learning: Can adapt to various smoke densities and types, with fine-tuning options available based on specific indoor environments.
- Integration Capability: Can be integrated into existing CCTV systems or specialized cameras used by rescue teams, provides an API for custom applications and third-party software integration.
- Potential Applications: Suitable for firefighting operations, surveillance during hazardous situations, and integration into smart building systems for automated hazard detection and management.
- Clone or download the repository from GitHub.
- Install the required dependencies using pip:
pip install -r requirements.txt
The remove_haze()
function accepts the following optional parameters for fine-tuning the dehazing process:
airlightEstimation_windowSze
: Size of the window for estimating the airlight (default: 15)boundaryConstraint_windowSze
: Size of the window for boundary constraints (default: 3)C0
,C1
: Constants for boundary constraints (default: C0=20, C1=300)regularize_lambda
: Regularization parameter (default: 0.1)sigma
: Standard deviation for the weighting function (default: 0.5)delta
: Fine-tuning parameter for dehazing (default: 0.85)showHazeTransmissionMap
: Whether to display the haze transmission map (default: True)
Contributions to this project are welcome from the White-ahts team. If you have any suggestions, bug reports, or feature requests,please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.