What can I help you with?
NVIDIA Morpheus (25.02.01)

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
thresholdfloat

The threshold value for filtering detections.

filter_sourcemorpheus.common.FilterSource

The source used for filtering.

field_namestr

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(msg) This function uses a threshold value to filter the messages.
filter_slice(msg) 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(msg)[source]

This function uses a threshold value to filter the messages.

Parameters
msgmorpheus.messages.ControlMessasge

Response message with probabilities calculated from inference results.

Returns
morpheus.messages.ControlMessage

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

filter_slice(msg)[source]

This function uses a threshold value to filter the messages.

Parameters
msgmorpheus.messages.ControlMessage

Response message with probabilities calculated from inference results.

Returns
list[morpheus.messages.ControlMessage]

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_typetyping.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 Mar 3, 2025.