Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class ObjectCount.
The object info and instant count for annotations from occupancy counting operator.
Generated from protobuf message google.cloud.visionai.v1.OccupancyCountingPredictionResult.Stats.ObjectCount
Namespace
Google \ Cloud \ VisionAI \ V1 \ OccupancyCountingPredictionResult \ StatsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ entity |
Google\Cloud\VisionAI\V1\OccupancyCountingPredictionResult\Entity
Entity of this object. |
↳ count |
int
Count of the object. |
getEntity
Entity of this object.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\VisionAI\V1\OccupancyCountingPredictionResult\Entity|null |
|
hasEntity
clearEntity
setEntity
Entity of this object.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\VisionAI\V1\OccupancyCountingPredictionResult\Entity
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCount
Count of the object.
| Returns | |
|---|---|
| Type | Description |
int |
|
setCount
Count of the object.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|