NVIDIA Morpheus (24.06)
(Latest Version)

morpheus.controllers.filter_detections_controller.FilterDetectionsController

class FilterDetectionsController(threshold, filter_source, field_name)[source]

Bases: object

Controller class for filtering detections based on a specified threshold and source.

Parameters
threshold

The threshold value for filtering detections.

filter_source : morpheus.common.FilterSource

The source used for filtering.

field_name

The name of the field used for filtering.

Attributes
field_name

Get the field name.

filter_source

Get the filter source.

threshold

Get the threshold value.

Methods

filter_copy(x) This function uses a threshold value to filter the messages.
filter_slice(x) This function uses a threshold value to filter the messages.
update_filter_source(message_type) This function updates filter source.
property field_name

Get the field name.

filter_copy(x)[source]

This function uses a threshold value to filter the messages.

Parameters
x : morpheus.pipeline.messages.MultiMessage

Response message with probabilities calculated from inference results.

Returns
morpheus.pipeline.messages.MultiMessage

A new message containing a copy of the rows above the threshold.

filter_slice(x)[source]

This function uses a threshold value to filter the messages.

Parameters
x : morpheus.pipeline.messages.MultiMessage

Response message with probabilities calculated from inference results.

Returns
typing.List[morpheus.pipeline.messages.MultiMessage]

List of filtered messages.

property filter_source

Get the filter source.

property threshold

Get the threshold value.

update_filter_source(message_type)[source]

This function updates filter source.

Parameters
message_type : typing.Any

Response message with probabilities calculated from inference results.

Previous morpheus.controllers.filter_detections_controller
Next morpheus.controllers.mlflow_model_writer_controller
© Copyright 2024, NVIDIA. Last updated on Jul 8, 2024.