Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class PersonIdentifiedBox.
PersonIdentified box contains the location and the entity info of the person.
Generated from protobuf message google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PersonIdentifiedBox
Namespace
Google \ Cloud \ VisionAI \ V1 \ PersonalProtectiveEquipmentDetectionOutputMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ box_id |
int|string
An unique id for this box. |
↳ normalized_bounding_box |
NormalizedBoundingBox
Bounding Box in the normalized coordinates. |
↳ confidence_score |
float
Confidence score associated with this box. |
↳ person_entity |
PersonEntity
Person entity info. |
getBoxId
An unique id for this box.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setBoxId
An unique id for this box.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNormalizedBoundingBox
Bounding Box in the normalized coordinates.
| Returns | |
|---|---|
| Type | Description |
NormalizedBoundingBox|null |
|
hasNormalizedBoundingBox
clearNormalizedBoundingBox
setNormalizedBoundingBox
Bounding Box in the normalized coordinates.
| Parameter | |
|---|---|
| Name | Description |
var |
NormalizedBoundingBox
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfidenceScore
Confidence score associated with this box.
| Returns | |
|---|---|
| Type | Description |
float |
|
setConfidenceScore
Confidence score associated with this box.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPersonEntity
Person entity info.
| Returns | |
|---|---|
| Type | Description |
PersonEntity|null |
|
hasPersonEntity
clearPersonEntity
setPersonEntity
Person entity info.
| Parameter | |
|---|---|
| Name | Description |
var |
PersonEntity
|
| Returns | |
|---|---|
| Type | Description |
$this |
|