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
-
filter_source :
morpheus.common.FilterSource
- field_name
The threshold value for filtering detections.
The source used for filtering.
The name of the field used for filtering.
- Attributes
field_name
filter_source
threshold
Get the field name.
Get the filter source.
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.
-
x :
- 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.
-
x :
- Returns
- typing.List[
morpheus.pipeline.messages.MultiMessage
]
List of filtered messages.
- typing.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 :