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 \ V1Methods
__construct
Constructor.
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.
Google\Protobuf\RepeatedField
< int
>| Google\Protobuf\RepeatedField
< string
>
setIds
The resource IDs of the AnnotationSpecs that had been identified.
var
int[]|string[]
$this
getDisplayNames
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
setDisplayNames
The display names of the AnnotationSpecs that had been identified, order matches the IDs.
var
string[]
$this
getConfidences
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
setConfidences
The Model's confidences in correctness of the predicted IDs, higher value means higher confidence. Order matches the Ids.
var
float[]
$this

