Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class ImageObjectDetectionPredictionResult.
Prediction output format for Image Object Detection.
Generated from protobuf message google.cloud.visionai.v1.ImageObjectDetectionPredictionResult
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__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, ordered by the confidence score descendingly. It is the id segment instead of full resource name. |
↳ 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. |
↳ bboxes |
array<Google\Protobuf\ListValue>
Bounding boxes, i.e. the rectangles over the image, that pinpoint the found AnnotationSpecs. Given in order that matches the IDs. Each bounding box is an array of 4 numbers |
getIds
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly. It is the id segment instead of full resource name.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setIds
The resource IDs of the AnnotationSpecs that had been identified, ordered by the confidence score descendingly. It is the id segment instead of full resource name.
| 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 |
|
getBboxes
Bounding boxes, i.e. the rectangles over the image, that pinpoint
the found AnnotationSpecs. Given in order that matches the IDs. Each
bounding box is an array of 4 numbers xMin, xMax, yMin, and
yMax, which represent the extremal coordinates of the box. They are
relative to the image size, and the point 0,0 is in the top left
of the image.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setBboxes
Bounding boxes, i.e. the rectangles over the image, that pinpoint
the found AnnotationSpecs. Given in order that matches the IDs. Each
bounding box is an array of 4 numbers xMin, xMax, yMin, and
yMax, which represent the extremal coordinates of the box. They are
relative to the image size, and the point 0,0 is in the top left
of the image.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Protobuf\ListValue>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|