Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DetectedPerson.
Detected Person contains the detected person and their associated ppes and their protecting information.
Generated from protobuf message google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.DetectedPerson
Namespace
Google \ Cloud \ VisionAI \ V1 \ PersonalProtectiveEquipmentDetectionOutputMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ person_id |
int|string
The id of detected person. |
↳ detected_person_identified_box |
PersonIdentifiedBox
The info of detected person identified box. |
↳ detected_ppe_identified_boxes |
array<PPEIdentifiedBox>
The info of detected person associated ppe identified boxes. |
↳ face_coverage_score |
float
Coverage score for each body part. Coverage score for face. |
↳ eyes_coverage_score |
float
Coverage score for eyes. |
↳ head_coverage_score |
float
Coverage score for head. |
↳ hands_coverage_score |
float
Coverage score for hands. |
↳ body_coverage_score |
float
Coverage score for body. |
↳ feet_coverage_score |
float
Coverage score for feet. |
getPersonId
The id of detected person.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setPersonId
The id of detected person.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDetectedPersonIdentifiedBox
The info of detected person identified box.
| Returns | |
|---|---|
| Type | Description |
PersonIdentifiedBox|null |
|
hasDetectedPersonIdentifiedBox
clearDetectedPersonIdentifiedBox
setDetectedPersonIdentifiedBox
The info of detected person identified box.
| Parameter | |
|---|---|
| Name | Description |
var |
PersonIdentifiedBox
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDetectedPpeIdentifiedBoxes
The info of detected person associated ppe identified boxes.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setDetectedPpeIdentifiedBoxes
The info of detected person associated ppe identified boxes.
| Parameter | |
|---|---|
| Name | Description |
var |
array<PPEIdentifiedBox>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFaceCoverageScore
Coverage score for each body part.
Coverage score for face.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasFaceCoverageScore
clearFaceCoverageScore
setFaceCoverageScore
Coverage score for each body part.
Coverage score for face.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEyesCoverageScore
Coverage score for eyes.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasEyesCoverageScore
clearEyesCoverageScore
setEyesCoverageScore
Coverage score for eyes.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHeadCoverageScore
Coverage score for head.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasHeadCoverageScore
clearHeadCoverageScore
setHeadCoverageScore
Coverage score for head.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getHandsCoverageScore
Coverage score for hands.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasHandsCoverageScore
clearHandsCoverageScore
setHandsCoverageScore
Coverage score for hands.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBodyCoverageScore
Coverage score for body.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasBodyCoverageScore
clearBodyCoverageScore
setBodyCoverageScore
Coverage score for body.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFeetCoverageScore
Coverage score for feet.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasFeetCoverageScore
clearFeetCoverageScore
setFeetCoverageScore
Coverage score for feet.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|