Ask Your Question
0

Fire/Flame Detection using OpenCV

asked 2013-03-03 02:09:51 -0600

No_More gravatar image

Hi,

I would like to know what are some possibilities to detect fire/flame in real time using opencv. I did some research on this subject, and i found people use fuzzy logic model, histograms and etc. Any information would be great.

Thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2013-03-04 09:44:55 -0600

Another way could be to use the fact that fire actually involves motion between frames in a video input. You could start by segmenting motion first, by simply applying background subtraction and then perform color segmentation based on color histogram matching.

Just a simple idea.

edit flag offensive delete link more
0

answered 2013-03-03 05:55:40 -0600

Guanta gravatar image

The classical way to detect/classify textures would be the usage of gabor-filters together with a classifier. However, since you ask specifically about OpenCV: You could train a cascade-classifier with LBPs since LBPs are also often used for texture detection/recognition this would be worth trying. Due to the cascade of weak classifiers this should be definitely fast enough for real-time (of course the training step is not real time and takes several hours).

edit flag offensive delete link more

Comments

I just did some research on the cascade-classifier class. If i understand correctly, i have to provide at least couple thousand images of fire (correct and incorrect) to train the algorithm to detect fire/flame right?

Do you have any tutorial/examples on using cascade-classifier with LBPs?

Thanks

No_More gravatar imageNo_More ( 2013-03-03 21:30:19 -0600 )edit

I can only point to the OpenCV user guide: http://docs.opencv.org/doc/user_guide/ug_traincascade.html . LBP can be selected with the 'featureType'-option.

Guanta gravatar imageGuanta ( 2013-03-04 03:00:55 -0600 )edit

Hi sorry for late comment but, is cascade-classifier also good even though the object you are detecting is not like constant texture? I thought the viola jones only applies to objects like faces car fruits etc.

Red Viper gravatar imageRed Viper ( 2016-01-25 22:29:56 -0600 )edit

Good question and I don't have an excact answer. I guess you have to just try and see what works best.

Guanta gravatar imageGuanta ( 2016-02-02 07:03:02 -0600 )edit

Question Tools

Stats

Asked: 2013-03-03 02:09:51 -0600

Seen: 4,162 times

Last updated: Mar 04 '13