Skip to main content

IdentificationVoting

Assign the most common identity out of the last 10 detections for that bounding box.

This module provides a pipeline element whose purpose is to remove some of the identification "noise" inherent in frame-by-frame identification. It achieves this by keeping a sliding windows of the last 10 identities for each bounding box and assigning the most common identity to the bounding box.

This pipeline element relies on the following elements for its metadata:

Examples:

REST API:

WIP

Configuration File:

short-from : identification-voting

pipeline:
- yolov5s-face:a:0.3:0.3
- demux
- face-alignment
- arcface
- mux
- arcface-identifier:redis
- people-tracking:100:1000:10
- identification-voting
sources:
- address: videos/sample.mp4
- type: file

IdentificationVoting Objects

class IdentificationVoting(Element)

Assign the most common identity out of the last 10 detections for that bounding box.

Attributes:

  • name str - Name of the element.

Examples:

ele = IdentificationVoting()

process

 | def process(meta)

Assign the most common identity out of the last 10 detections for that bounding box.

This is the main function for the element. In this case we are going to create a sliding window of the identities for specific bounding boxes and then vote on the most common identity for each window and assign it to the bounding box.

Arguments:

  • meta dict - The metadata of the frame.

Returns:

  • meta dict - The processed metadata.

Examples:

ele = IdentificationVoting()
meta = ele.process(meta)