Attention: This MediaPipe Solutions Preview is an early release. Learn more.

mp.tasks.audio.AudioClassifierResult

Stay organized with collections Save and categorize content based on your preferences.

Contains the classification results of a model.

classifications A list of Classifications objects, each for a head of the model.
timestamp_ms The optional timestamp (in milliseconds) of the start of the chunk of data corresponding to these results. This is only used for classification on time series (e.g. audio classification). In these use cases, the amount of data to process might exceed the maximum size that the model can process: to solve this, the input data is split into multiple chunks starting at different timestamps.

Methods

create_from_pb2

View source

Creates a ClassificationResult object from the given protobuf object.

to_pb2

View source

Generates a ClassificationResult protobuf object.

__eq__

timestamp_ms None