dcase_util.containers.MetaDataContainer.process_events

MetaDataContainer.process_events(minimum_event_length=None, minimum_event_gap=None)[source]

Process event content

Makes sure that minimum event length and minimum event gap conditions are met per event label class.

Parameters
minimum_event_lengthfloat > 0.0

Minimum event length in seconds, shorten than given are filtered out from the output. Default value None

minimum_event_gapfloat > 0.0

Minimum allowed gap between events in seconds from same event label class. Default value None

Returns
MetaDataContainer