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

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

Prediction output format for Video Classification.

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

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ segment_start_time Google\Protobuf\Timestamp

The beginning, inclusive, of the video's time segment in which the classifications have been identified.

↳ segment_end_time Google\Protobuf\Timestamp

The end, inclusive, of the video's time segment in which the classifications have been identified. Particularly, if the end is the same as the start, it means the identification happens on a specific video frame.

↳ classifications array<VideoClassificationPredictionResult\IdentifiedClassification>

All of the classifications identified in the time range.

getSegmentStartTime

The beginning, inclusive, of the video's time segment in which the classifications have been identified.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasSegmentStartTime

clearSegmentStartTime

setSegmentStartTime

The beginning, inclusive, of the video's time segment in which the classifications have been identified.

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

getSegmentEndTime

The end, inclusive, of the video's time segment in which the classifications have been identified. Particularly, if the end is the same as the start, it means the identification happens on a specific video frame.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasSegmentEndTime

clearSegmentEndTime

setSegmentEndTime

The end, inclusive, of the video's time segment in which the classifications have been identified. Particularly, if the end is the same as the start, it means the identification happens on a specific video frame.

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

getClassifications

All of the classifications identified in the time range.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setClassifications

All of the classifications identified in the time range.

Parameter
Name Description
var array<VideoClassificationPredictionResult\IdentifiedClassification>
Returns
Type Description
$this