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

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

PPEIdentified box contains the location and the entity info of the PPE.

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

Namespace

Google \ Cloud \ VisionAI \ V1 \ PersonalProtectiveEquipmentDetectionOutput

Methods

__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.

↳ ppe_entity PPEEntity

PPE 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

getPpeEntity

PPE entity info.

Returns
Type Description
PPEEntity|null

hasPpeEntity

clearPpeEntity

setPpeEntity

PPE entity info.

Parameter
Name Description
var PPEEntity
Returns
Type Description
$this