Ask Your Question

Detect fire/flame using HSV filter to contours.

asked 2017-01-12 08:40:08 -0500

U.Swap gravatar image

I want to detect fires/flames, in realtime camera stream, is it possible to do this using HSV color space and apply mask and filters to appropriately detect contours in given HSV colorspace, so what could be the HSV range that can identify/detect fire/flames.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-01-12 09:13:36 -0500

pklab gravatar image

I don't think that fires/flames have any specificity in HSV. Hue of flames depends on burning material, (e.g. pure methane produces blue flame) Saturation might be high, sure Brightness is very high such as white objects and common light sources.

See this interesting question/answer on same subject Fire detection using opencv

edit flag offensive delete link more


how about training HOG+SVM in order to detect flames, using sliding window?

U.Swap gravatar imageU.Swap ( 2017-01-13 04:44:27 -0500 )edit

answered 2017-08-09 09:08:52 -0500

Ziri gravatar image

updated 2017-08-09 09:23:37 -0500

You can combine Color based detection (i suggest using CIELab*) with contours (Edge) detection for better segmentation.

You may want to detect flame movement using background subtraction.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-01-12 08:40:08 -0500

Seen: 1,128 times

Last updated: Aug 09 '17