Cloud AutoML V1beta1 Client - Class VideoClassificationAnnotation (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class VideoClassificationAnnotation.

Contains annotation details specific to video classification.

Generated from protobuf message google.cloud.automl.v1beta1.VideoClassificationAnnotation

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type string

Output only. Expresses the type of video classification. Possible values: * segment - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification. * shot- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality. * 1s_interval - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.

↳ classification_annotation Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation

Output only . The classification details of this annotation.

↳ time_segment Google\Cloud\AutoMl\V1beta1\TimeSegment

Output only . The time segment of the video to which the annotation applies.

getType

Output only. Expresses the type of video classification. Possible values:

  • segment - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification.

  • shot- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.

  • 1s_interval - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
Returns
TypeDescription
string

setType

Output only. Expresses the type of video classification. Possible values:

  • segment - Classification done on a specified by user time segment of a video. AnnotationSpec is answered to be present in that time segment, if it is present in any part of it. The video ML model evaluations are done only for this type of classification.

  • shot- Shot-level classification. AutoML Video Intelligence determines the boundaries for each camera shot in the entire segment of the video that user specified in the request configuration. AutoML Video Intelligence then returns labels and their confidence scores for each detected shot, along with the start and end time of the shot. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.

  • 1s_interval - AutoML Video Intelligence returns labels and their confidence scores for each second of the entire segment of the video that user specified in the request configuration. WARNING: Model evaluation is not done for this classification type, the quality of it depends on training data, but there are no metrics provided to describe that quality.
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getClassificationAnnotation

Output only . The classification details of this annotation.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation|null

hasClassificationAnnotation

clearClassificationAnnotation

setClassificationAnnotation

Output only . The classification details of this annotation.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\ClassificationAnnotation
Returns
TypeDescription
$this

getTimeSegment

Output only . The time segment of the video to which the annotation applies.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\TimeSegment|null

hasTimeSegment

clearTimeSegment

setTimeSegment

Output only . The time segment of the video to which the annotation applies.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\TimeSegment
Returns
TypeDescription
$this