https://github.com/vicnesterenko/fire-detection
fire detection scripts for master project
https://github.com/vicnesterenko/fire-detection
fire-detection kpi-ua matlab python yolo
Last synced: 3 months ago
JSON representation
fire detection scripts for master project
- Host: GitHub
- URL: https://github.com/vicnesterenko/fire-detection
- Owner: vicnesterenko
- Created: 2023-12-16T19:42:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T20:28:56.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T05:55:46.159Z (9 months ago)
- Topics: fire-detection, kpi-ua, matlab, python, yolo
- Language: MATLAB
- Homepage:
- Size: 2.57 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fire Detection in Drone Video
## MATLAB implementation
For matlab implementation check this folder `matlab-detection-fire`.
This MATLAB code analyzes a forest drone video to detect potential fire regions based on color thresholds in the YCbCr color space.
### Features
- **Video Input**: The code reads a forest drone video ('forest_droneCam.mp4' by default).
- **Color Space Conversion**: Converts each frame to the YCbCr color space.
- **Thresholding**: Applies thresholding on Cb and Cr channels to identify potential fire regions.
- **Binary Mask Creation**: Generates a binary mask highlighting detected fire regions.
- **Visualization**: Displays the processed frames with detected fire regions using `implay`.### Usage
1. Clone the repository.
2. Ensure MATLAB is installed.
3. Open MATLAB and navigate to the code directory.
4. Run the script (`detection.m`) with your desired video file.```matlab
detectFire('your_video.mp4');
```## Python implementation
### In progress...