Ask Your Question
0

Is it possible to implement a fire detection algorithm using python in simplecv

asked 2013-03-22 02:19:03 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I would like to implement a fire detection algorithm using Python. I'm a Python fan - don't much know about C++.

I'm here about Simplecv - I think that it is easier than opencv I have a good camera - And I use ubuntu.

My doubts

Is it able to implement perfect fire detection algorithm using Python? Is it simplecv is powerful for implementing fire detection algorithm? Which is most powerful simplecv/opencv or any other framework in python What all are the necessary and sufficient requirements I need to care? Could you please help me if you have any idea

If you know any tutorial/links, please share with me

Thanks in advance

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2013-03-22 12:39:34 -0600

pap-x gravatar image

updated 2013-03-22 12:44:46 -0600

What you're trying to implement can be done in both SimpleCV and OpenCV and both are sufficient. Now, performance-wise OpenCV is a lot faster than SimpleCV (C++ vs Python) but for the purpose of your project you don't have to get into OpenCV. You could however just use python libraries like PIL and PyGame to get images from camera and process them but SimpleCV got you covered.

I didn't clearly understand what you're trying to do as "fire detection algorithm" is a very general statement and "perfect algorithm" is something subjective. Assuming you want to detect fire in a static environment I would use motion detection or histogram differences between 1 sec shots. Check out these links:

SimpleCV Motion Detection:

https://github.com/ingenuitas/simplecv-examples/blob/master/code/motion-detection.py

SimpleCV Histogram:

http://examples.simplecv.org/en/latest/examples/image-math.html#histograms

edit flag offensive delete link more
1

answered 2013-03-22 22:38:16 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Wouldn't it be easier to use an infrared camera in your application? Fire has very specific properties (very high temps) that you should focus on right? Infrared cameras would return a color coded image based on temp. Then you could just find those specific colored blobs that indicate that fire is present.

edit flag offensive delete link more
0

answered 2013-04-25 13:43:59 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Most webcams can be easily converted into infrared cameras. You'll probably have better luck if your algorithm at least considers stuff in the IR band.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-03-22 02:19:03 -0600

Seen: 2,789 times

Last updated: Apr 25 '13