morpheus.controllers.filter_detections_controller.FilterDetectionsController#
- class FilterDetectionsController(threshold, filter_source, field_name)[source]#
Bases:
objectController class for filtering detections based on a specified threshold and source.
- Parameters:
- thresholdfloat
The threshold value for filtering detections.
- filter_source
morpheus.common.FilterSource The source used for filtering.
- field_namestr
The name of the field used for filtering.
- Attributes:
field_nameGet the field name.
filter_sourceGet the filter source.
thresholdGet 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:
- msg
morpheus.messages.ControlMessasge Response message with probabilities calculated from inference results.
- msg
- Returns:
morpheus.messages.ControlMessageA 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:
- msg
morpheus.messages.ControlMessage Response message with probabilities calculated from inference results.
- msg
- Returns:
- list[
morpheus.messages.ControlMessage] List of filtered messages.
- list[
- 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.
- message_type