An algorithm that examines sky and ground to decide if theres a forest fire going on. This software uses OpenCV library with Python pragramming language.
In order to use this software properly, a camera that shoots forest with the skyline is in the center of the frame is required.
When all hardware is installed, the camera takes a shot for calibration image in the morning time with a clear sky.
The images that taken from this camera can be used as input check image in ASB-Forest-Fire-Detector.py to check if there is any fire thread exists.
- Resize calibration image.
- Sky and ground seperates with a black-white mask in calibration image.
- Using black and white pixel positions in mask image, sky and ground seperates in current check image for sky and ground examination.
- Any smoke are searched with HSV values in sky examination.
- Any fire is searched with HSV values in ground examination.
- If smoke or fire detection rate is above the smokeThreshold or fireThreshold value, software warns user in examination results.
Test for a check image of forest with no fire and no smoke.
Test for a check image of forest with only fire.
Test for a check image of forest with only smoke.
Test for a check image of forest with fire and smoke.
Test for another check image of forest with no fire and no smoke.
Test for another check image of forest with only fire.