Skip to content

gunarakulangunaretnam/fire-detection-system-using-python-opencv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fire Detection System In Python Using HSV Color

Introduction

The fire detection system is a security system. The primary function of this system is to detect fires and turn on alarms to warn of fire accidents. This system is written in Python with an OpenCV computer vision module. It uses the HSV color algorithm to detect fires.

This project provides a computer vision-based technique for detecting fire and identifying hazardous fires by processing the video data generated by an ordinary camera.

Technologies

  • Python
  • OpenCV
  • SMTPLIB
  • HSV color Algorithm

What is HSV color algorithm?

Color isolation can be achieved by extracting a particular HSV (hue, saturation, value) from an image. The algorithm is simple and the main steps are as follows:

  • Step 1 - RGB to HSV Conversion
  • Step 2 - Apply a Threshold Mask

We want to convert the image to HSV because working with HSV values is much easier to isolate colors. In the HSV representation of color, hue determines the color you want, saturation determines how intense the color is and value determines the lightness of the image. As can be seen in the image below, 0 on the wheel would specify a mild red color and 240 would specify a blue color.

Configuration & Setup

  • Install playsound

      pip install playsound
    
  • Install OpnCV

      pip install opencv-python
    

Execution

  python fire-detector.py

Contact

Website:

Visit

Social Media:

LinkedIn Facebook WhatsApp Instagram X.COM Kaggle TikTok YouTube

Releases

No releases published

Packages

No packages published

Languages