dcase_framework.recognizers.SceneRecognizer¶
-
class
dcase_framework.recognizers.
SceneRecognizer
(*args, **kwargs)[source]¶ Multi-class single label recognition
Parameters
Field name Value type Description frame_accumulation, Defining frame probability accumulation. enable bool Enable frame probability accumulation. type string {sum | mean | median } Operator type used to accumulate. window_length_seconds float Window length in seconds for sliding accumulation. frame_binarization, Defining frame probability binarization. enable bool Enable frame probability binarization. type string {frame_max | global_threshold } Type of binarization:
frame_max
, each frame is treated individually, max of each frame is set to one, all others to zero.global_threshold
, global threshold, all values over the threshold are set to one.
threshold float Threshold value. Set to null if not used. event_activity_processing, Event activity processing per frame. enable bool Enable activity processing. type string {median_filtering} Type of decision:
median_filtering
, median filtering of decision- inside window.
window_length_seconds float Length of sliding window in seconds for activity processing. event_post_processing, Event post processing per event. enable bool Enable event processing. minimum_event_length_seconds float Minimum allowed event length. Shorter events will be removed. minimum_event_gap_second float Minimum allowed gap between events. Smaller gaps between events will cause events to be merged together. Constructor
Parameters: params : dict
Processing parameters
class_labels : list of str
Class labels in a list
-
__init__
(*args, **kwargs)[source]¶ Constructor
Parameters: params : dict
Processing parameters
class_labels : list of str
Class labels in a list
Methods
__init__
(\*args, \*\*kwargs)Constructor collapse_probabilities
(probabilities[, operator])Collapse probabilities collapse_probabilities_windowed
(...[, operator])Collapse probabilities in windows find_contiguous_regions
(activity_array)Find contiguous regions from bool valued numpy.array. process
(frame_probabilities)Multi-class single label recognition. process_activity
(activity_array, window_length)Process activity array (binary)