Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.
/ fire-detection Public archive

A fire detection script that uses image processing.

License

Notifications You must be signed in to change notification settings

lcmandrada/fire-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fire Detection

The project detects fire in a video through image processing using the following functions:

  • background subtraction to detect motion
  • color analysis to highlight fire color and intensity
  • display analysis to filter virtual and static fire
  • shape analysis to filter virtual and static fire
  • variance analysis to observe the behavior of fire color
  • blob detection to extract detected fire
  • alarm decision unit to send the final alert

Build

It can be started by executing python3 on code.py.

python3 code.py

And it can be built by executing PyInstaller on code.spec.

pyinstaller code.spec

Note

Edit the VIDEO variable to contain the path of the video.
Also, change the <directory> of pathex at code.spec to the path of the folder containing the files.

About

A fire detection script that uses image processing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages