Color Detection for Danger factor Conversion
- theandybrock
- Oct 24, 2022
- 1 min read
Updated: Oct 24, 2022
To reduce the risk of wildfires, we have to determine the risk. In order to do this, we created a parameter named "Danger Factor". On a scale from 0 to 10, we evaluate how dangerous the area is by the color of vegetations. The more greenish the area is, the lower the danger factor will be, vice versa.
With the help of the internet, I made a python code that's able to determine the risk factor on pixels I double-clicked on. Basically, it works as follows:
Get RGB data of pixel
Match closest color in the danger factor database
Return the danger factor value
The results are shown below:


Some improvements required in the future:
The danger factor database can be more precise, even introducing real-life experiments to refine the conversion.
Can determine grids by looking at a satellite image
Able to convert the danger factor of whole grid (average of every pixel's RGB value)
Refine method of determining danger factor.
With the help of 1. introduce danger factor with decimal digits.
Dry Grass~Land
References:



Comments