Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class BoundingBox.
Boundingbox for detected object. I.e. the rectangle over the video frame pinpointing the found AnnotationSpec. The coordinates are relative to the frame size, and the point 0,0 is in the top left of the frame.
Generated from protobuf message google.cloud.visionai.v1.VideoObjectTrackingPredictionResult.BoundingBox
Namespace
Google \ Cloud \ VisionAI \ V1 \ VideoObjectTrackingPredictionResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ x_min |
float
The leftmost coordinate of the bounding box. |
↳ x_max |
float
The rightmost coordinate of the bounding box. |
↳ y_min |
float
The topmost coordinate of the bounding box. |
↳ y_max |
float
The bottommost coordinate of the bounding box. |
getXMin
The leftmost coordinate of the bounding box.
| Returns | |
|---|---|
| Type | Description |
float |
|
setXMin
The leftmost coordinate of the bounding box.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getXMax
The rightmost coordinate of the bounding box.
| Returns | |
|---|---|
| Type | Description |
float |
|
setXMax
The rightmost coordinate of the bounding box.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getYMin
The topmost coordinate of the bounding box.
| Returns | |
|---|---|
| Type | Description |
float |
|
setYMin
The topmost coordinate of the bounding box.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getYMax
The bottommost coordinate of the bounding box.
| Returns | |
|---|---|
| Type | Description |
float |
|
setYMax
The bottommost coordinate of the bounding box.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|