Skip to main content

SmokeFireDetection

Counts every object detected by fire-smoke model per frame.

This module provides a pipeline element to count all the objects detectes as fire/smoke.

Examples:

REST API:

WIP

Configuration File:

short-from : smoke-fire-detection

pipeline:
- yolo-v3-tiny-fire-smoke:a:0.3:0.3
- smoke-fire-detection
sources:
- address: videos/fire-detection.mp4
- type: file

SmokeFireDetection Objects

class SmokeFireDetection(Element)

Counts every object detected by fire-smoke model per frame.

Attributes:

  • name str - The name of the element.

Examples:

ele = SmokeFireDetection()

process

def process(meta)

Process the bounding boxes.

This is the main function for this element. It will take the bounding boxes and count the number of detections by fire-smoke model.

Arguments:

  • meta dict - The metadata to process.

Returns:

  • meta dict - The processed metadata.

Examples:

ele = SmokeFireDetection()
meta = ele.process(meta)