Google Cloud Vision Ai V1 Client - Class OccupancyCountingPredictionResult (0.3.0)

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

The prediction result proto for occupancy counting.

Generated from protobuf message google.cloud.visionai.v1.OccupancyCountingPredictionResult

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ current_time Google\Protobuf\Timestamp

Current timestamp.

↳ identified_boxes array<OccupancyCountingPredictionResult\IdentifiedBox>

A list of identified boxes.

↳ stats OccupancyCountingPredictionResult\Stats

Detection statistics.

↳ track_info array<OccupancyCountingPredictionResult\TrackInfo>

Track related information. All the tracks that are live at this timestamp. It only exists if tracking is enabled.

↳ dwell_time_info array<OccupancyCountingPredictionResult\DwellTimeInfo>

Dwell time related information. All the tracks that are live in a given zone with a start and end dwell time timestamp

↳ pts int|string

The presentation timestamp of the frame.

getCurrentTime

Current timestamp.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCurrentTime

clearCurrentTime

setCurrentTime

Current timestamp.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getIdentifiedBoxes

A list of identified boxes.

Returns
Type Description
Google\Protobuf\RepeatedField<OccupancyCountingPredictionResult\IdentifiedBox>

setIdentifiedBoxes

A list of identified boxes.

Parameter
Name Description
var array<OccupancyCountingPredictionResult\IdentifiedBox>
Returns
Type Description
$this

getStats

Detection statistics.

Returns
Type Description
OccupancyCountingPredictionResult\Stats|null

hasStats

clearStats

setStats

Detection statistics.

Parameter
Name Description
var OccupancyCountingPredictionResult\Stats
Returns
Type Description
$this

getTrackInfo

Track related information. All the tracks that are live at this timestamp.

It only exists if tracking is enabled.

Returns
Type Description
Google\Protobuf\RepeatedField<OccupancyCountingPredictionResult\TrackInfo>

setTrackInfo

Track related information. All the tracks that are live at this timestamp.

It only exists if tracking is enabled.

Parameter
Name Description
var array<OccupancyCountingPredictionResult\TrackInfo>
Returns
Type Description
$this

getDwellTimeInfo

Dwell time related information. All the tracks that are live in a given zone with a start and end dwell time timestamp

Returns
Type Description
Google\Protobuf\RepeatedField<OccupancyCountingPredictionResult\DwellTimeInfo>

setDwellTimeInfo

Dwell time related information. All the tracks that are live in a given zone with a start and end dwell time timestamp

Parameter
Name Description
var array<OccupancyCountingPredictionResult\DwellTimeInfo>
Returns
Type Description
$this

getPts

The presentation timestamp of the frame.

Returns
Type Description
int|string

hasPts

clearPts

setPts

The presentation timestamp of the frame.

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