Reference documentation and code samples for the Cloud Video Intelligence V1 Client class VideoAnnotationResults.
Annotation results for a single video.
Generated from protobuf message google.cloud.videointelligence.v1.VideoAnnotationResults
Namespace
Google \ Cloud \ VideoIntelligence \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ input_uri
↳ segment
↳ segment_label_annotations
array< Google\Cloud\VideoIntelligence\V1\LabelAnnotation
>
Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label.
↳ segment_presence_label_annotations
array< Google\Cloud\VideoIntelligence\V1\LabelAnnotation
>
Presence label annotations on video level or user-specified segment level. There is exactly one element for each unique label. Compared to the existing topical segment_label_annotations
, this field presents more fine-grained, segment-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model
to "builtin/latest" in the request.
↳ shot_label_annotations
array< Google\Cloud\VideoIntelligence\V1\LabelAnnotation
>
Topical label annotations on shot level. There is exactly one element for each unique label.
↳ shot_presence_label_annotations
array< Google\Cloud\VideoIntelligence\V1\LabelAnnotation
>
Presence label annotations on shot level. There is exactly one element for each unique label. Compared to the existing topical shot_label_annotations
, this field presents more fine-grained, shot-level labels detected in video content and is made available only when the client sets LabelDetectionConfig.model
to "builtin/latest" in the request.
↳ frame_label_annotations
array< Google\Cloud\VideoIntelligence\V1\LabelAnnotation
>
Label annotations on frame level. There is exactly one element for each unique label.
↳ face_annotations
array< Google\Cloud\VideoIntelligence\V1\FaceAnnotation
>
Deprecated. Please use face_detection_annotations
instead.
↳ face_detection_annotations
↳ shot_annotations
array< Google\Cloud\VideoIntelligence\V1\VideoSegment
>
Shot annotations. Each shot is represented as a video segment.
↳ explicit_annotation
↳ speech_transcriptions
↳ text_annotations
array< Google\Cloud\VideoIntelligence\V1\TextAnnotation
>
OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it.
↳ object_annotations
array< Google\Cloud\VideoIntelligence\V1\ObjectTrackingAnnotation
>
Annotations for list of objects detected and tracked in video.
↳ logo_recognition_annotations
array< Google\Cloud\VideoIntelligence\V1\LogoRecognitionAnnotation
>
Annotations for list of logos detected, tracked and recognized in video.
↳ person_detection_annotations
↳ error
Google\Rpc\Status
If set, indicates an error. Note that for a single AnnotateVideoRequest
some videos may succeed and some may fail.
getInputUri
Video file location in Cloud Storage .
string
setInputUri
Video file location in Cloud Storage .
var
string
$this
getSegment
Video segment on which the annotation is run.
hasSegment
clearSegment
setSegment
Video segment on which the annotation is run.
$this
getSegmentLabelAnnotations
Topical label annotations on video level or user-specified segment level.
There is exactly one element for each unique label.
setSegmentLabelAnnotations
Topical label annotations on video level or user-specified segment level.
There is exactly one element for each unique label.
$this
getSegmentPresenceLabelAnnotations
Presence label annotations on video level or user-specified segment level.
There is exactly one element for each unique label. Compared to the
existing topical segment_label_annotations
, this field presents more
fine-grained, segment-level labels detected in video content and is made
available only when the client sets LabelDetectionConfig.model
to
"builtin/latest" in the request.
setSegmentPresenceLabelAnnotations
Presence label annotations on video level or user-specified segment level.
There is exactly one element for each unique label. Compared to the
existing topical segment_label_annotations
, this field presents more
fine-grained, segment-level labels detected in video content and is made
available only when the client sets LabelDetectionConfig.model
to
"builtin/latest" in the request.
$this
getShotLabelAnnotations
Topical label annotations on shot level.
There is exactly one element for each unique label.
setShotLabelAnnotations
Topical label annotations on shot level.
There is exactly one element for each unique label.
$this
getShotPresenceLabelAnnotations
Presence label annotations on shot level. There is exactly one element for
each unique label. Compared to the existing topical shot_label_annotations
, this field presents more fine-grained, shot-level
labels detected in video content and is made available only when the client
sets LabelDetectionConfig.model
to "builtin/latest" in the request.
setShotPresenceLabelAnnotations
Presence label annotations on shot level. There is exactly one element for
each unique label. Compared to the existing topical shot_label_annotations
, this field presents more fine-grained, shot-level
labels detected in video content and is made available only when the client
sets LabelDetectionConfig.model
to "builtin/latest" in the request.
$this
getFrameLabelAnnotations
Label annotations on frame level.
There is exactly one element for each unique label.
setFrameLabelAnnotations
Label annotations on frame level.
There is exactly one element for each unique label.
$this
getFaceAnnotations
Deprecated. Please use face_detection_annotations
instead.
setFaceAnnotations
Deprecated. Please use face_detection_annotations
instead.
var
array< Google\Cloud\VideoIntelligence\V1\FaceAnnotation
>
$this
getFaceDetectionAnnotations
Face detection annotations.
setFaceDetectionAnnotations
Face detection annotations.
$this
getShotAnnotations
Shot annotations. Each shot is represented as a video segment.
setShotAnnotations
Shot annotations. Each shot is represented as a video segment.
$this
getExplicitAnnotation
Explicit content annotation.
hasExplicitAnnotation
clearExplicitAnnotation
setExplicitAnnotation
Explicit content annotation.
$this
getSpeechTranscriptions
Speech transcription.
setSpeechTranscriptions
Speech transcription.
$this
getTextAnnotations
OCR text detection and tracking.
Annotations for list of detected text snippets. Each will have list of frame information associated with it.
setTextAnnotations
OCR text detection and tracking.
Annotations for list of detected text snippets. Each will have list of frame information associated with it.
$this
getObjectAnnotations
Annotations for list of objects detected and tracked in video.
setObjectAnnotations
Annotations for list of objects detected and tracked in video.
$this
getLogoRecognitionAnnotations
Annotations for list of logos detected, tracked and recognized in video.
setLogoRecognitionAnnotations
Annotations for list of logos detected, tracked and recognized in video.
$this
getPersonDetectionAnnotations
Person detection annotations.
setPersonDetectionAnnotations
Person detection annotations.
$this
getError
If set, indicates an error. Note that for a single AnnotateVideoRequest
some videos may succeed and some may fail.
hasError
clearError
setError
If set, indicates an error. Note that for a single AnnotateVideoRequest
some videos may succeed and some may fail.
$this