Anvitha Infotech
The AI-Based Fog Detection and Alert System is a computer vision application that analyzes uploaded video footage and detects the presence of fog using a trained deep learning model. The system processes video frames, predicts …
Fog is a major environmental factor that reduces visibility and significantly increases the risk of road accidents, particularly on highways and during early morning or late-night travel. Sudden and dense fog formation often catches commuters and transport authorities unprepared, making timely detection and warning critical for accident prevention. This project presents an AI-based Fog Detection and Alert System that utilizes Deep Learning and Computer Vision techniques to identify foggy conditions from video footage, offering an automated and proactive approach to weather-related road safety monitoring.
Users upload a video through a web interface, and the system extracts and processes individual frames using OpenCV. This frame-by-frame extraction allows the system to analyze visual data at a granular level rather than relying on a single static image, ensuring that fluctuations in fog density throughout the video duration are accurately captured. A pre-trained TensorFlow/Keras model then analyzes each extracted frame and predicts the probability of fog presence, leveraging deep learning's capability to recognize subtle visual patterns such as reduced contrast, haze, and blurred object boundaries that are characteristic of foggy conditions.
The detected fog percentage is calculated for every frame, and an overall average fog level is generated for the entire video, providing a comprehensive summary of visibility conditions rather than an isolated frame-based judgment. If the fog density exceeds a predefined threshold, the system automatically sends an email alert to the concerned authority, enabling timely preventive measures such as traffic advisories, speed restrictions, or route diversions.
The project demonstrates the integration of Artificial Intelligence, Image Processing, and Web Technologies to develop an intelligent weather monitoring and safety system. By combining automated video analysis with a responsive alert mechanism, the system contributes toward reducing fog-related accidents and improving road safety through early and reliable warning delivery.