:::: MENU ::::

Automatic Fire Detection- Matlab

Helllo all,

I am want to share my term project that lessons name is Digital Signal Processing Design & Applications. I spend a lot of my time to this project unfortunately I couldnt find what I did want to do. So I thought a little and came up with basic algorithm to do solve this project. Sorry I forget to explain my project to you.

Helllo all,

I am want to share my term project that lessons name is Digital Signal Processing Design & Applications. I spend a lot of my time to this project unfortunately I couldn’t find what I did want to do. So I thought a little and came up with basic algorithm to do solve this project. Sorry I forget to explain my project to you.

So The important things is recognize to fire on early stage ! I want to detect fire automatically when it’s on early stages. Also to make fire extinction easier for controlling the fire and smoke.

Imagine that if you see fire and you run to where is the fire break glass. This is one of the solution. Other solution is smoke and heat sensor system. Yes this is good solution but this are not recognize to early stage of fire !

So, what I am thinking about this problem ? . I want to say I didn’t search any Project for this course. I wanted to this Project. And also I have already develop this Project.

My solution is image processing because image see that wide area. And computer determinate to fire detected or no fire in here. This also solve basic solution. But it makes save lives.

Algorithm

  • Determine of digital image
  • Convert to R G B Colour range Matrix
  • Selection of yellow colour range on photo
  • Convert image to binary range
  • Count that how much binary inside the image

sunum1


 

STEPS OF APPLICATON

1- Determine of digital image

fire5

Matlab Code :

foto = imread(‘fire.jpg’);

 

2- Convert to R G B Colur range Matrix

 

Matlab Code :

R = foto(:, :, 1);   % 768×1024 pixel

G = foto(:, :, 2);  % 768×1024 pixel

B = foto(:, :, 3);  % 768×1024 pixel

 

3- Selection yellow colour range of photo

Matlab Code :

yellowness = (single(R) + single(G))/2 – single(B);

binaryYellow = yellowness > 120;

One pixel given by integer range of 0 and 255. You can see white colour that is the where yellow pixel bigger than 120.

4- Count to how much binary inside the image

charmendarFire

Matlab Code :

tesbit1=sum(binaryYellow(:));

if tesbit1>1500

title(‘Fire Detected’)

else

title(‘No Fire’)

end

 

Result :

 

fire detection

 

 

 

 

automaticFireDetection

 

 

Contents

Determine of digital image

figure

Convert to R G B Colur range Matrix

DESCRIPTIVE TEXT

Selection yellow colour range of photo

Convert image to binary range

Count to how much binary inside the image

 

 

 


One Comment

  • Cevapla Jony Selcon |

    Thank you, I need a sample code to same project. Did you using video sample? Please share if you did

So, what do you think ?