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.OccupancyCountingPredictionResult.IdentifiedBox

Namespace

Google \ Cloud \ VisionAI \ V1 \ OccupancyCountingPredictionResult

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.

↳ score float

Confidence score associated with this box.

↳ entity Entity

Entity of this box.

↳ track_id int|string

An unique id to identify a track. It should be consistent across frames. It only exists if tracking is enabled.

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

getScore

Confidence score associated with this box.

Returns
Type Description
float

setScore

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

getTrackId

An unique id to identify a track. It should be consistent across frames.

It only exists if tracking is enabled.

Returns
Type Description
int|string

setTrackId

An unique id to identify a track. It should be consistent across frames.

It only exists if tracking is enabled.

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