Introducing Google AI Edge Portal: Benchmark Edge AI at scale. Sign-up to request access during private preview.

ImageClassifierResult interface

Classification results of a model.

Signature:

exportdeclareinterfaceImageClassifierResult

Properties

Property Type Description
classifications Classifications[] The classification results for each head of the model.
timestampMs number 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.

ImageClassifierResult.classifications

The classification results for each head of the model.

Signature:

classifications:Classifications[];

ImageClassifierResult.timestampMs

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.

Signature:

timestampMs?:number;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年05月07日 UTC.