Google Cloud Vision Ai V1 Client - Class ClassificationPredictionResult (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class ClassificationPredictionResult.

Prediction output format for Image and Text Classification.

Generated from protobuf message google.cloud.visionai.v1.ClassificationPredictionResult

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ids array

The resource IDs of the AnnotationSpecs that had been identified.

↳ display_names array

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

↳ confidences array

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

getIds

The resource IDs of the AnnotationSpecs that had been identified.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setIds

The resource IDs of the AnnotationSpecs that had been identified.

Parameter
Name Description
var int[]|string[]|Google\Protobuf\Internal\RepeatedField
Returns
Type Description
$this

getDisplayNames

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDisplayNames

The display names of the AnnotationSpecs that had been identified, order matches the IDs.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getConfidences

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setConfidences

The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.

Parameter
Name Description
var float[]
Returns
Type Description
$this