Google Cloud Vision Ai V1 Client - Class PPEEntity (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class PPEEntity.

The entity info for annotations from PPE detection prediction result.

Generated from protobuf message google.cloud.visionai.v1.PersonalProtectiveEquipmentDetectionOutput.PPEEntity

Namespace

Google \ Cloud \ VisionAI \ V1 \ PersonalProtectiveEquipmentDetectionOutput

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ppe_label_id int|string

Label id.

↳ ppe_label_string string

Human readable string of the label (Examples: helmet, glove, mask).

↳ ppe_supercategory_label_string string

Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).

↳ ppe_entity_id int|string

Entity id.

getPpeLabelId

Label id.

Returns
Type Description
int|string

setPpeLabelId

Label id.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getPpeLabelString

Human readable string of the label (Examples: helmet, glove, mask).

Returns
Type Description
string

setPpeLabelString

Human readable string of the label (Examples: helmet, glove, mask).

Parameter
Name Description
var string
Returns
Type Description
$this

getPpeSupercategoryLabelString

Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).

Returns
Type Description
string

setPpeSupercategoryLabelString

Human readable string of the super category label (Examples: head_cover, hands_cover, face_cover).

Parameter
Name Description
var string
Returns
Type Description
$this

getPpeEntityId

Entity id.

Returns
Type Description
int|string

setPpeEntityId

Entity id.

Parameter
Name Description
var int|string
Returns
Type Description
$this