Service Client: Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoIntelligenceServiceClient

Client stub representing the remote VideoIntelligenceService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to videointelligence.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Videointelligence::V1::VideoIntelligence - Compiled Protocol Buffers messages for google/cloud/videointelligence/v1/video_intelligence.proto

SYNOPSIS

use Google::Cloud::Videointelligence::V1::VideoIntelligence;

my $msg = Google::Cloud::Videointelligence::V1::VideoIntelligence::AnnotateVideoRequest->new({
    input_uri => $input_uri,
    input_content => $input_content,
    features => $features,
    video_context => $video_context,
});

# Read or update a field
my $val = $msg->input_uri();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Videointelligence::V1::VideoIntelligence::AnnotateVideoRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/videointelligence/v1/video_intelligence.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Videointelligence::V1::VideoIntelligence::AnnotateVideoRequest

Video annotation request.

Inherits from Protobuf::Message.

Accessors

  • $msg->input_uri() / $msg->input_uri($value)

    Type: String

    Input video location. Currently, only [Cloud Storage](https://cloud.google.com/storage/) URIs are supported. URIs must be specified in the following format: `gs://bucket-id/object-id` (other URI formats return [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify multiple videos, a video URI may include wildcards in the `object-id`. Supported wildcards: '*' to match 0 or more characters; '?' to match 1 character. If unset, the input video should be embedded in the request as `input_content`. If set, `input_content` must be unset.

  • $msg->input_content() / $msg->input_content($value)

    Type: Bytes

    The video data bytes. If unset, the input video(s) should be specified via the `input_uri`. If set, `input_uri` must be unset.

  • $msg->features() / $msg->features($value)

    Type: Enum (Google::Cloud::Videointelligence::V1::Feature)

    Required. Requested video annotation features.

  • $msg->video_context() / $msg->video_context($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoContext)

    Additional video context and/or feature-specific parameters.

  • $msg->output_uri() / $msg->output_uri($value)

    Type: String

    Optional. Location where the output (in JSON format) should be stored. Currently, only [Cloud Storage](https://cloud.google.com/storage/) URIs are supported. These must be specified in the following format: `gs://bucket-id/object-id` (other URI formats return [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).

  • $msg->location_id() / $msg->location_id($value)

    Type: String

    Optional. Cloud region where annotation should take place. Supported cloud regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region is specified, the region will be determined based on video file location.

Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoContext

Video context and/or feature-specific parameters.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::LabelDetectionConfig

Config for LABEL_DETECTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->label_detection_mode() / $msg->label_detection_mode($value)

    Type: Enum (Google::Cloud::Videointelligence::V1::LabelDetectionMode)

    What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`.

  • $msg->stationary_camera() / $msg->stationary_camera($value)

    Type: Bool

    Whether the video has been shot from a stationary (i.e., non-moving) camera. When set to true, might improve detection accuracy for moving objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.

  • $msg->model() / $msg->model($value)

    Type: String

    Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

  • $msg->frame_confidence_threshold() / $msg->frame_confidence_threshold($value)

    Type: Float

    The confidence threshold we perform filtering on the labels from frame-level detection. If not set, it is set to 0.4 by default. The valid range for this threshold is [0.1, 0.9]. Any value set outside of this range will be clipped. Note: For best results, follow the default threshold. We will update the default threshold everytime when we release a new model.

  • $msg->video_confidence_threshold() / $msg->video_confidence_threshold($value)

    Type: Float

    The confidence threshold we perform filtering on the labels from video-level and shot-level detections. If not set, it's set to 0.3 by default. The valid range for this threshold is [0.1, 0.9]. Any value set outside of this range will be clipped. Note: For best results, follow the default threshold. We will update the default threshold everytime when we release a new model.

Google::Cloud::Videointelligence::V1::VideoIntelligence::ShotChangeDetectionConfig

Config for SHOT_CHANGE_DETECTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->model() / $msg->model($value)

    Type: String

    Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Google::Cloud::Videointelligence::V1::VideoIntelligence::ObjectTrackingConfig

Config for OBJECT_TRACKING.

Inherits from Protobuf::Message.

Accessors

  • $msg->model() / $msg->model($value)

    Type: String

    Model to use for object tracking. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Google::Cloud::Videointelligence::V1::VideoIntelligence::FaceDetectionConfig

Config for FACE_DETECTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->model() / $msg->model($value)

    Type: String

    Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

  • $msg->include_bounding_boxes() / $msg->include_bounding_boxes($value)

    Type: Bool

    Whether bounding boxes are included in the face annotation output.

  • $msg->include_attributes() / $msg->include_attributes($value)

    Type: Bool

    Whether to enable face attributes detection, such as glasses, dark_glasses, mouth_open etc. Ignored if 'include_bounding_boxes' is set to false.

Google::Cloud::Videointelligence::V1::VideoIntelligence::PersonDetectionConfig

Config for PERSON_DETECTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->include_bounding_boxes() / $msg->include_bounding_boxes($value)

    Type: Bool

    Whether bounding boxes are included in the person detection annotation output.

  • $msg->include_pose_landmarks() / $msg->include_pose_landmarks($value)

    Type: Bool

    Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false.

  • $msg->include_attributes() / $msg->include_attributes($value)

    Type: Bool

    Whether to enable person attributes detection, such as cloth color (black, blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair, etc. Ignored if 'include_bounding_boxes' is set to false.

Google::Cloud::Videointelligence::V1::VideoIntelligence::ExplicitContentDetectionConfig

Config for EXPLICIT_CONTENT_DETECTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->model() / $msg->model($value)

    Type: String

    Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Google::Cloud::Videointelligence::V1::VideoIntelligence::TextDetectionConfig

Config for TEXT_DETECTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->language_hints() / $msg->language_hints($value)

    Type: String

    Language hint can be specified if the language to be detected is known a priori. It can increase the accuracy of the detection. Language hint must be language code in BCP-47 format.

    Automatic language detection is performed if no hint is provided.

  • $msg->model() / $msg->model($value)

    Type: String

    Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest".

Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoSegment

Video segment.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time_offset() / $msg->start_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive).

  • $msg->end_time_offset() / $msg->end_time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive).

Google::Cloud::Videointelligence::V1::VideoIntelligence::LabelSegment

Video segment level annotation results for label detection.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::LabelFrame

Video frame level annotation results for label detection.

Inherits from Protobuf::Message.

Accessors

  • $msg->time_offset() / $msg->time_offset($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

  • $msg->confidence() / $msg->confidence($value)

    Type: Float

    Confidence that the label is accurate. Range: [0, 1].

Google::Cloud::Videointelligence::V1::VideoIntelligence::Entity

Detected entity from video analysis.

Inherits from Protobuf::Message.

Accessors

  • $msg->entity_id() / $msg->entity_id($value)

    Type: String

    Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).

  • $msg->description() / $msg->description($value)

    Type: String

    Textual description, e.g., `Fixed-gear bicycle`.

  • $msg->language_code() / $msg->language_code($value)

    Type: String

    Language code for `description` in BCP-47 format.

Google::Cloud::Videointelligence::V1::VideoIntelligence::LabelAnnotation

Label annotation.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::ExplicitContentFrame

Video frame level annotation results for explicit content.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::ExplicitContentAnnotation

Explicit content annotation (based on per-frame visual signals only). If no explicit content has been detected in a frame, no annotations are present for that frame.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::NormalizedBoundingBox

Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1].

Inherits from Protobuf::Message.

Accessors

  • $msg->left() / $msg->left($value)

    Type: Float

    Left X coordinate.

  • $msg->top() / $msg->top($value)

    Type: Float

    Top Y coordinate.

  • $msg->right() / $msg->right($value)

    Type: Float

    Right X coordinate.

  • $msg->bottom() / $msg->bottom($value)

    Type: Float

    Bottom Y coordinate.

Google::Cloud::Videointelligence::V1::VideoIntelligence::FaceDetectionAnnotation

Face detection annotation.

Inherits from Protobuf::Message.

Accessors

  • $msg->tracks() / $msg->tracks($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::Track)

    The face tracks with attributes.

  • $msg->thumbnail() / $msg->thumbnail($value)

    Type: Bytes

    The thumbnail of a person's face.

  • $msg->version() / $msg->version($value)

    Type: String

    Feature version.

Google::Cloud::Videointelligence::V1::VideoIntelligence::PersonDetectionAnnotation

Person detection annotation per video.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::FaceSegment

Video segment level annotation results for face detection.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::FaceFrame

Deprecated. No effect.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::FaceAnnotation

Deprecated. No effect.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::TimestampedObject

For tracking related features. An object at time_offset with attributes, and located with normalized_bounding_box.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::Track

A track of an object instance.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::DetectedAttribute

A generic detected attribute represented by name in string format.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of the attribute, for example, glasses, dark_glasses, mouth_open. A full list of supported type names will be provided in the document.

  • $msg->confidence() / $msg->confidence($value)

    Type: Float

    Detected attribute confidence. Range [0, 1].

  • $msg->value() / $msg->value($value)

    Type: String

    Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc.

Google::Cloud::Videointelligence::V1::VideoIntelligence::DetectedLandmark

A generic detected landmark represented by name in string format and a 2D location.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The name of this landmark, for example, left_hand, right_shoulder.

  • $msg->point() / $msg->point($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::NormalizedVertex)

    The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1.

  • $msg->confidence() / $msg->confidence($value)

    Type: Float

    The confidence score of the detected landmark. Range [0, 1].

Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoAnnotationResults

Annotation results for a single video.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::AnnotateVideoResponse

Video annotation response. Included in the `response` field of the `Operation` returned by the `GetOperation` call of the `google::longrunning::Operations` service.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoAnnotationProgress

Annotation progress for a single video.

Inherits from Protobuf::Message.

Accessors

  • $msg->input_uri() / $msg->input_uri($value)

    Type: String

    Video file location in [Cloud Storage](https://cloud.google.com/storage/).

  • $msg->progress_percent() / $msg->progress_percent($value)

    Type: Int32

    Approximate percentage processed thus far. Guaranteed to be 100 when fully processed.

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time when the request was received.

  • $msg->update_time() / $msg->update_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Time of the most recent update.

  • $msg->feature() / $msg->feature($value)

    Type: Enum (Google::Cloud::Videointelligence::V1::Feature)

    Specifies which feature is being tracked if the request contains more than one feature.

  • $msg->segment() / $msg->segment($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoSegment)

    Specifies which segment is being tracked if the request contains more than one segment.

Google::Cloud::Videointelligence::V1::VideoIntelligence::AnnotateVideoProgress

Video annotation progress. Included in the `metadata` field of the `Operation` returned by the `GetOperation` call of the `google::longrunning::Operations` service.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::SpeechTranscriptionConfig

Config for SPEECH_TRANSCRIPTION.

Inherits from Protobuf::Message.

Accessors

  • $msg->language_code() / $msg->language_code($value)

    Type: String

    Required. *Required* The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US". See [Language Support](https://cloud.google.com/speech/docs/languages) for a list of the currently supported language codes.

  • $msg->max_alternatives() / $msg->max_alternatives($value)

    Type: Int32

    Optional. Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of `SpeechRecognitionAlternative` messages within each `SpeechTranscription`. The server may return fewer than `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of one. If omitted, will return a maximum of one.

  • $msg->filter_profanity() / $msg->filter_profanity($value)

    Type: Bool

    Optional. If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g. "f***". If set to `false` or omitted, profanities won't be filtered out.

  • $msg->speech_contexts() / $msg->speech_contexts($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::SpeechContext)

    Optional. A means to provide context to assist the speech recognition.

  • $msg->enable_automatic_punctuation() / $msg->enable_automatic_punctuation($value)

    Type: Bool

    Optional. If 'true', adds punctuation to recognition result hypotheses. This feature is only available in select languages. Setting this for requests in other languages has no effect at all. The default 'false' value does not add punctuation to result hypotheses. NOTE: "This is currently offered as an experimental service, complimentary to all users. In the future this may be exclusively available as a premium feature."

  • $msg->audio_tracks() / $msg->audio_tracks($value)

    Type: Int32

    Optional. For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0.

  • $msg->enable_speaker_diarization() / $msg->enable_speaker_diarization($value)

    Type: Bool

    Optional. If 'true', enables speaker detection for each recognized word in the top alternative of the recognition result using a speaker_tag provided in the WordInfo. Note: When this is true, we send all the words from the beginning of the audio for the top alternative in every consecutive response. This is done in order to improve our speaker tags as our models learn to identify the speakers in the conversation over time.

  • $msg->diarization_speaker_count() / $msg->diarization_speaker_count($value)

    Type: Int32

    Optional. If set, specifies the estimated number of speakers in the conversation. If not set, defaults to '2'. Ignored unless enable_speaker_diarization is set to true.

  • $msg->enable_word_confidence() / $msg->enable_word_confidence($value)

    Type: Bool

    Optional. If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`.

Google::Cloud::Videointelligence::V1::VideoIntelligence::SpeechContext

Provides "hints" to the speech recognizer to favor specific words and phrases in the results.

Inherits from Protobuf::Message.

Accessors

  • $msg->phrases() / $msg->phrases($value)

    Type: String

    Optional. A list of strings containing words and phrases "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech/limits#content).

Google::Cloud::Videointelligence::V1::VideoIntelligence::SpeechTranscription

A speech recognition result corresponding to a portion of the audio.

Inherits from Protobuf::Message.

Accessors

  • $msg->alternatives() / $msg->alternatives($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::SpeechRecognitionAlternative)

    May contain one or more recognition hypotheses (up to the maximum specified in `max_alternatives`). These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer.

  • $msg->language_code() / $msg->language_code($value)

    Type: String

    Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.

Google::Cloud::Videointelligence::V1::VideoIntelligence::SpeechRecognitionAlternative

Alternative hypotheses (a.k.a. n-best list).

Inherits from Protobuf::Message.

Accessors

  • $msg->transcript() / $msg->transcript($value)

    Type: String

    Transcript text representing the words that the user spoke.

  • $msg->confidence() / $msg->confidence($value)

    Type: Float

    Output only. The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.

  • $msg->words() / $msg->words($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::WordInfo)

    Output only. A list of word-specific information for each recognized word. Note: When `enable_speaker_diarization` is set to true, you will see all the words from the beginning of the audio.

Google::Cloud::Videointelligence::V1::VideoIntelligence::WordInfo

Word-specific information for recognized words. Word information is only included in the response when certain request parameters are set, such as `enable_word_time_offsets`.

Inherits from Protobuf::Message.

Accessors

  • $msg->start_time() / $msg->start_time($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.

  • $msg->end_time() / $msg->end_time($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if `enable_word_time_offsets=true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.

  • $msg->word() / $msg->word($value)

    Type: String

    The word corresponding to this set of information.

  • $msg->confidence() / $msg->confidence($value)

    Type: Float

    Output only. The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.

  • $msg->speaker_tag() / $msg->speaker_tag($value)

    Type: Int32

    Output only. A distinct integer value is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. Value ranges from 1 up to diarization_speaker_count, and is only set if speaker diarization is enabled.

Google::Cloud::Videointelligence::V1::VideoIntelligence::NormalizedVertex

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

Inherits from Protobuf::Message.

Accessors

  • $msg->x() / $msg->x($value)

    Type: Float

    X coordinate.

  • $msg->y() / $msg->y($value)

    Type: Float

    Y coordinate.

Google::Cloud::Videointelligence::V1::VideoIntelligence::NormalizedBoundingPoly

Normalized bounding polygon for text (that might not be aligned with axis). Contains list of the corner points in clockwise order starting from top-left corner. For example, for a rectangular bounding box: When the text is horizontal it might look like: 0----1 | | 3----2

When it's clockwise rotated 180 degrees around the top-left corner it becomes: 2----3 | | 1----0

and the vertex order will still be (0, 1, 2, 3). Note that values can be less than 0, or greater than 1 due to trignometric calculations for location of the box.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::TextSegment

Video segment level annotation results for text detection.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::TextFrame

Video frame level annotation results for text annotation (OCR). Contains information regarding timestamp and bounding box locations for the frames containing detected OCR text snippets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::TextAnnotation

Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::ObjectTrackingFrame

Video frame level annotations for object detection and tracking. This field stores per frame location, time offset, and confidence.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Videointelligence::V1::VideoIntelligence::ObjectTrackingAnnotation

Annotations corresponding to one tracked object.

Inherits from Protobuf::Message.

Accessors

  • $msg->segment() / $msg->segment($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::VideoSegment)

    Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears.

  • $msg->track_id() / $msg->track_id($value)

    Type: Int64

    Streaming mode ONLY. In streaming mode, we do not know the end time of a tracked object before it is completed. Hence, there is no VideoSegment info returned. Instead, we provide a unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.

  • $msg->entity() / $msg->entity($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::Entity)

    Entity to specify the object category that this track is labeled as.

  • $msg->confidence() / $msg->confidence($value)

    Type: Float

    Object category's labeling confidence of this track.

  • $msg->frames() / $msg->frames($value)

    Type: Message (Google::Cloud::Videointelligence::V1::VideoIntelligence::ObjectTrackingFrame)

    Information corresponding to all frames where this object track appears. Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames.

  • $msg->version() / $msg->version($value)

    Type: String

    Feature version.

Google::Cloud::Videointelligence::V1::VideoIntelligence::LogoRecognitionAnnotation

Annotation corresponding to one detected, tracked and recognized logo class.

Inherits from Protobuf::Message.

Accessors

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Videointelligence::V1::VideoIntelligence::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.