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

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

Identified box contains location and the entity of the object.

Generated from protobuf message google.cloud.visionai.v1.ObjectDetectionPredictionResult.IdentifiedBox

Namespace

Google \ Cloud \ VisionAI \ V1 \ ObjectDetectionPredictionResult

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 IdentifiedBox\NormalizedBoundingBox

Bounding Box in the normalized coordinates.

↳ confidence_score float

Confidence score associated with this box.

↳ entity Entity

Entity of this box.

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
IdentifiedBox\NormalizedBoundingBox|null

hasNormalizedBoundingBox

clearNormalizedBoundingBox

setNormalizedBoundingBox

Bounding Box in the normalized coordinates.

Parameter
Name Description
var IdentifiedBox\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

getEntity

Entity of this box.

Returns
Type Description
Entity|null

hasEntity

clearEntity

setEntity

Entity of this box.

Parameter
Name Description
var Entity
Returns
Type Description
$this