Google Cloud Vision Ai V1 Client - Class ClassificationPredictionResult (0.3.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
int[]|string[]

The resource IDs of the AnnotationSpecs that had been identified.

↳ display_names
string[]

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

↳ confidences
float[]

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

setIds

The resource IDs of the AnnotationSpecs that had been identified.

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

getDisplayNames

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

Returns
Type
Description

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

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
Create a Mobile Website
View Site in Mobile | Classic
Share by: