Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gunarakulangunaretnam committed Mar 17, 2022
1 parent 9770d56 commit bbf49a2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,47 @@

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

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


## Technologies
- Python
- OpenCV
- SMTPLIB
- HSV Color
- HSV color Algorithm

![](github-readme-content/image-1.jpg)


#### Execution

## What is HSV color algorithm?

![](github-readme-content/hsv-1.jpg)

![](github-readme-content/hsv-0.png)

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
Expand All @@ -25,7 +55,7 @@ The fire detection system is a security system. The primary function of this sys
Any Questions? | Conduct Me
---

* [Linkedin Profile](https://www.linkedin.com/in/gunarakulan-gunaretnam-161119156/)
* [Linkedin Profile](https://www.linkedin.com/in/gunarakulangunaretnam)
* [Facebook Profile](https://www.facebook.com/gunarakulan)
* [Twitter Profile](https://twitter.com/gunarakulang)
* [Instagram Profile](https://www.instagram.com/gunarakulan_gunaretnam/)
Expand Down
Binary file added github-readme-content/hsv-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added github-readme-content/hsv-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bbf49a2

Please sign in to comment.