Members
(static, constant) Feature :number
Video annotation feature.
Properties:
Name | Type | Description |
---|---|---|
FEATURE_UNSPECIFIED |
number |
Unspecified. |
LABEL_DETECTION |
number |
Label detection. Detect objects, such as dog or flower. |
SHOT_CHANGE_DETECTION |
number |
Shot change detection. |
EXPLICIT_CONTENT_DETECTION |
number |
Explicit content detection. |
SPEECH_TRANSCRIPTION |
number |
Speech transcription. |
TEXT_DETECTION |
number |
OCR text detection and tracking. |
OBJECT_TRACKING |
number |
Object detection and tracking. |
LOGO_RECOGNITION |
number |
Logo detection, tracking, and recognition. |
(static, constant) LabelDetectionMode :number
Label detection mode.
Properties:
Name | Type | Description |
---|---|---|
LABEL_DETECTION_MODE_UNSPECIFIED |
number |
Unspecified. |
SHOT_MODE |
number |
Detect shot-level labels. |
FRAME_MODE |
number |
Detect frame-level labels. |
SHOT_AND_FRAME_MODE |
number |
Detect both shot-level and frame-level labels. |
(static, constant) Likelihood :number
Bucketized representation of likelihood.
Properties:
Name | Type | Description |
---|---|---|
LIKELIHOOD_UNSPECIFIED |
number |
Unspecified likelihood. |
VERY_UNLIKELY |
number |
Very unlikely. |
UNLIKELY |
number |
Unlikely. |
POSSIBLE |
number |
Possible. |
LIKELY |
number |
Likely. |
VERY_LIKELY |
number |
Very likely. |
(static, constant) StreamingFeature :number
Streaming video annotation feature.
Properties:
Name | Type | Description |
---|---|---|
STREAMING_FEATURE_UNSPECIFIED |
number |
Unspecified. |
STREAMING_LABEL_DETECTION |
number |
Label detection. Detect objects, such as dog or flower. |
STREAMING_SHOT_CHANGE_DETECTION |
number |
Shot change detection. |
STREAMING_EXPLICIT_CONTENT_DETECTION |
number |
Explicit content detection. |
STREAMING_OBJECT_TRACKING |
number |
Object detection and tracking. |
STREAMING_AUTOML_CLASSIFICATION |
number |
Video classification based on AutoML model. |
STREAMING_AUTOML_OBJECT_TRACKING |
number |
Object detection and tracking based on AutoML model. |
Type Definitions
AnnotateVideoProgress
Video annotation progress. Included in the metadata
field of the Operation
returned by the GetOperation
call of the google::longrunning::Operations
service.
Properties:
Name | Type | Description |
---|---|---|
annotationProgress |
Array.<Object> |
Progress metadata for all videos specified in This object should have the same structure as VideoAnnotationProgress |
- Source:
- See:
AnnotateVideoRequest
Video annotation request.
Properties:
Name | Type | Description |
---|---|---|
inputUri |
string |
Input video location. Currently, only
Google Cloud Storage URIs are
supported, which must be specified in the following format:
|
inputContent |
Buffer |
The video data bytes.
If unset, the input video(s) should be specified via |
features |
Array.<number> |
Requested video annotation features. The number should be among the values of Feature |
videoContext |
Object |
Additional video context and/or feature-specific parameters. This object should have the same structure as VideoContext |
outputUri |
string |
Optional location where the output (in JSON format) should be stored.
Currently, only Google Cloud Storage
URIs are supported, which must be specified in the following format:
|
locationId |
string |
Optional cloud region where annotation should take place. Supported cloud
regions: |
- Source:
- See:
AnnotateVideoResponse
Video annotation response. Included in the response
field of the Operation
returned by the GetOperation
call of the google::longrunning::Operations
service.
Properties:
Name | Type | Description |
---|---|---|
annotationResults |
Array.<Object> |
Annotation results for all videos specified in This object should have the same structure as VideoAnnotationResults |
- Source:
- See:
DetectedAttribute
A generic detected attribute represented by name in string format.
Properties:
Name | Type | Description |
---|---|---|
name |
string |
The name of the attribute, i.e. glasses, dark_glasses, mouth_open etc. A full list of supported type names will be provided in the document. |
confidence |
number |
Detected attribute confidence. Range [0, 1]. |
value |
string |
Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. |
- Source:
- See:
Entity
Detected entity from video analysis.
Properties:
Name | Type | Description |
---|---|---|
entityId |
string |
Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API. |
description |
string |
Textual description, e.g. |
languageCode |
string |
Language code for |
- Source:
- See:
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.
Properties:
Name | Type | Description |
---|---|---|
frames |
Array.<Object> |
All video frames where explicit content was detected. This object should have the same structure as ExplicitContentFrame |
- Source:
- See:
ExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION.
Properties:
Name | Type | Description |
---|---|---|
model |
string |
Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". |
- Source:
- See:
ExplicitContentFrame
Video frame level annotation results for explicit content.
Properties:
Name | Type | Description |
---|---|---|
timeOffset |
Object |
Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. This object should have the same structure as Duration |
pornographyLikelihood |
number |
Likelihood of the pornography content.. The number should be among the values of Likelihood |
- Source:
- See:
LabelAnnotation
Label annotation.
Properties:
Name | Type | Description |
---|---|---|
entity |
Object |
Detected entity. This object should have the same structure as Entity |
categoryEntities |
Array.<Object> |
Common categories for the detected entity.
E.g. when the label is This object should have the same structure as Entity |
segments |
Array.<Object> |
All video segments where a label was detected. This object should have the same structure as LabelSegment |
frames |
Array.<Object> |
All video frames where a label was detected. This object should have the same structure as LabelFrame |
- Source:
- See:
LabelDetectionConfig
Config for LABEL_DETECTION.
Properties:
Name | Type | Description |
---|---|---|
labelDetectionMode |
number |
What labels should be detected with LABEL_DETECTION, in addition to
video-level labels or segment-level labels.
If unspecified, defaults to The number should be among the values of LabelDetectionMode |
stationaryCamera |
boolean |
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 |
model |
string |
Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". |
frameConfidenceThreshold |
number |
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 please follow the default threshold. We will update the default threshold everytime when we release a new model. |
videoConfidenceThreshold |
number |
The confidence threshold we perform filtering on the labels from video-level and shot-level detections. If not set, it is 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 please follow the default threshold. We will update the default threshold everytime when we release a new model. |
- Source:
- See:
LabelFrame
Video frame level annotation results for label detection.
Properties:
Name | Type | Description |
---|---|---|
timeOffset |
Object |
Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. This object should have the same structure as Duration |
confidence |
number |
Confidence that the label is accurate. Range: [0, 1]. |
- Source:
- See:
LabelSegment
Video segment level annotation results for label detection.
Properties:
Name | Type | Description |
---|---|---|
segment |
Object |
Video segment where a label was detected. This object should have the same structure as VideoSegment |
confidence |
number |
Confidence that the label is accurate. Range: [0, 1]. |
- Source:
- See:
LogoRecognitionAnnotation
Annotation corresponding to one detected, tracked and recognized logo class.
Properties:
Name | Type | Description |
---|---|---|
entity |
Object |
Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. This object should have the same structure as Entity |
tracks |
Array.<Object> |
All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. This object should have the same structure as Track |
segments |
Array.<Object> |
All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. This object should have the same structure as VideoSegment |
- Source:
- See:
NormalizedBoundingBox
Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1].
Properties:
Name | Type | Description |
---|---|---|
left |
number |
Left X coordinate. |
top |
number |
Top Y coordinate. |
right |
number |
Right X coordinate. |
bottom |
number |
Bottom Y coordinate. |
- Source:
- See:
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.
Properties:
Name | Type | Description |
---|---|---|
vertices |
Array.<Object> |
Normalized vertices of the bounding polygon. This object should have the same structure as NormalizedVertex |
- Source:
- See:
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.
Properties:
Name | Type | Description |
---|---|---|
x |
number |
X coordinate. |
y |
number |
Y coordinate. |
- Source:
- See:
ObjectTrackingAnnotation
Annotations corresponding to one tracked object.
Properties:
Name | Type | Description |
---|---|---|
entity |
Object |
Entity to specify the object category that this track is labeled as. This object should have the same structure as Entity |
confidence |
number |
Object category's labeling confidence of this track. |
frames |
Array.<Object> |
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. This object should have the same structure as ObjectTrackingFrame |
segment |
Object |
Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. This object should have the same structure as VideoSegment |
trackId |
number |
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. |
- Source:
- See:
ObjectTrackingConfig
Config for OBJECT_TRACKING.
Properties:
Name | Type | Description |
---|---|---|
model |
string |
Model to use for object tracking. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". |
- Source:
- See:
ObjectTrackingFrame
Video frame level annotations for object detection and tracking. This field stores per frame location, time offset, and confidence.
Properties:
Name | Type | Description |
---|---|---|
normalizedBoundingBox |
Object |
The normalized bounding box location of this object track for the frame. This object should have the same structure as NormalizedBoundingBox |
timeOffset |
Object |
The timestamp of the frame in microseconds. This object should have the same structure as Duration |
- Source:
- See:
ShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION.
Properties:
Name | Type | Description |
---|---|---|
model |
string |
Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". |
- Source:
- See:
SpeechContext
Provides "hints" to the speech recognizer to favor specific words and phrases in the results.
Properties:
Name | Type | Description |
---|---|---|
phrases |
Array.<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. |
- Source:
- See:
SpeechRecognitionAlternative
Alternative hypotheses (a.k.a. n-best list).
Properties:
Name | Type | Description |
---|---|---|
transcript |
string |
Transcript text representing the words that the user spoke. |
confidence |
number |
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 typically provided only for the top hypothesis, and
only for |
words |
Array.<Object> |
A list of word-specific information for each recognized word. This object should have the same structure as WordInfo |
- Source:
- See:
SpeechTranscription
A speech recognition result corresponding to a portion of the audio.
Properties:
Name | Type | Description |
---|---|---|
alternatives |
Array.<Object> |
May contain one or more recognition hypotheses (up to the maximum specified
in This object should have the same structure as SpeechRecognitionAlternative |
languageCode |
string |
Output only. The BCP-47 language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio. |
- Source:
- See:
SpeechTranscriptionConfig
Config for SPEECH_TRANSCRIPTION.
Properties:
Name | Type | Description |
---|---|---|
languageCode |
string |
Required The language of the supplied audio as a BCP-47 language tag. Example: "en-US". See Language Support for a list of the currently supported language codes. |
maxAlternatives |
number |
Optional Maximum number of recognition hypotheses to be returned.
Specifically, the maximum number of |
filterProfanity |
boolean |
Optional If set to |
speechContexts |
Array.<Object> |
Optional A means to provide context to assist the speech recognition. This object should have the same structure as SpeechContext |
enableAutomaticPunctuation |
boolean |
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." |
audioTracks |
Array.<number> |
Optional For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0. |
enableSpeakerDiarization |
boolean |
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 responses. This is done in order to improve our speaker tags as our models learn to identify the speakers in the conversation over time. |
diarizationSpeakerCount |
number |
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. |
enableWordConfidence |
boolean |
Optional If |
- Source:
- See:
StreamingAnnotateVideoRequest
The top-level message sent by the client for the StreamingAnnotateVideo
method. Multiple StreamingAnnotateVideoRequest
messages are sent.
The first message must only contain a StreamingVideoConfig
message.
All subsequent messages must only contain input_content
data.
Properties:
Name | Type | Description |
---|---|---|
videoConfig |
Object |
Provides information to the annotator, specifing how to process the
request. The first This object should have the same structure as StreamingVideoConfig |
inputContent |
Buffer |
The video data to be annotated. Chunks of video data are sequentially
sent in |
- Source:
- See:
StreamingAnnotateVideoResponse
StreamingAnnotateVideoResponse
is the only message returned to the client
by StreamingAnnotateVideo
. A series of zero or more
StreamingAnnotateVideoResponse
messages are streamed back to the client.
Properties:
Name | Type | Description |
---|---|---|
error |
Object |
If set, returns a google.rpc.Status message that specifies the error for the operation. This object should have the same structure as Status |
annotationResults |
Object |
Streaming annotation results. This object should have the same structure as StreamingVideoAnnotationResults |
annotationResultsUri |
string |
GCS URI that stores annotation results of one streaming session. It is a directory that can hold multiple files in JSON format. Example uri format: gs://bucket_id/object_id/cloud_project_name-session_id |
- Source:
- See:
StreamingAutomlClassificationConfig
Config for AUTOML_CLASSIFICATION in streaming mode.
Properties:
Name | Type | Description |
---|---|---|
modelName |
string |
Resource name of AutoML model.
Format: |
- Source:
- See:
StreamingAutomlObjectTrackingConfig
Config for AUTOML_OBJECT_TRACKING in streaming mode.
Properties:
Name | Type | Description |
---|---|---|
modelName |
string |
Resource name of AutoML model.
Format: |
- Source:
- See:
StreamingExplicitContentDetectionConfig
Config for EXPLICIT_CONTENT_DETECTION in streaming mode. No customized config support.
- Source:
- See:
StreamingLabelDetectionConfig
Config for LABEL_DETECTION in streaming mode.
Properties:
Name | Type | Description |
---|---|---|
stationaryCamera |
boolean |
Whether the video has been captured from a stationary (i.e. non-moving) camera. When set to true, might improve detection accuracy for moving objects. Default: false. |
- Source:
- See:
StreamingObjectTrackingConfig
Config for STREAMING_OBJECT_TRACKING. No customized config support.
- Source:
- See:
StreamingShotChangeDetectionConfig
Config for SHOT_CHANGE_DETECTION in streaming mode. No customized config support.
- Source:
- See:
StreamingStorageConfig
Config for streaming storage option.
Properties:
Name | Type | Description |
---|---|---|
enableStorageAnnotationResult |
boolean |
Enable streaming storage. Default: false. |
annotationResultStorageDirectory |
string |
GCS URI to store all annotation results for one client. Client should
specify this field as the top-level storage directory. Annotation results
of different sessions will be put into different sub-directories denoted
by project_name and session_id. All sub-directories will be auto generated
by program and will be made accessible to client in response proto.
URIs must be specified in the following format: |
- Source:
- See:
StreamingVideoAnnotationResults
Streaming annotation results corresponding to a portion of the video that is currently being processed.
Properties:
Name | Type | Description |
---|---|---|
shotAnnotations |
Array.<Object> |
Shot annotation results. Each shot is represented as a video segment. This object should have the same structure as VideoSegment |
labelAnnotations |
Array.<Object> |
Label annotation results. This object should have the same structure as LabelAnnotation |
explicitAnnotation |
Object |
Explicit content annotation results. This object should have the same structure as ExplicitContentAnnotation |
objectAnnotations |
Array.<Object> |
Object tracking results. This object should have the same structure as ObjectTrackingAnnotation |
- Source:
- See:
StreamingVideoConfig
Provides information to the annotator that specifies how to process the request.
Properties:
Name | Type | Description |
---|---|---|
feature |
number |
Requested annotation feature. The number should be among the values of StreamingFeature |
shotChangeDetectionConfig |
Object |
Config for STREAMING_SHOT_CHANGE_DETECTION. This object should have the same structure as StreamingShotChangeDetectionConfig |
labelDetectionConfig |
Object |
Config for STREAMING_LABEL_DETECTION. This object should have the same structure as StreamingLabelDetectionConfig |
explicitContentDetectionConfig |
Object |
Config for STREAMING_EXPLICIT_CONTENT_DETECTION. This object should have the same structure as StreamingExplicitContentDetectionConfig |
objectTrackingConfig |
Object |
Config for STREAMING_OBJECT_TRACKING. This object should have the same structure as StreamingObjectTrackingConfig |
automlClassificationConfig |
Object |
Config for STREAMING_AUTOML_CLASSIFICATION. This object should have the same structure as StreamingAutomlClassificationConfig |
automlObjectTrackingConfig |
Object |
Config for STREAMING_AUTOML_OBJECT_TRACKING. This object should have the same structure as StreamingAutomlObjectTrackingConfig |
storageConfig |
Object |
Streaming storage option. By default: storage is disabled. This object should have the same structure as StreamingStorageConfig |
- Source:
- See:
TextAnnotation
Annotations related to one detected OCR text snippet. This will contain the corresponding text, confidence value, and frame level information for each detection.
Properties:
Name | Type | Description |
---|---|---|
text |
string |
The detected text. |
segments |
Array.<Object> |
All video segments where OCR detected text appears. This object should have the same structure as TextSegment |
- Source:
- See:
TextDetectionConfig
Config for TEXT_DETECTION.
Properties:
Name | Type | Description |
---|---|---|
languageHints |
Array.<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. |
model |
string |
Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". |
- Source:
- See:
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.
Properties:
Name | Type | Description |
---|---|---|
rotatedBoundingBox |
Object |
Bounding polygon of the detected text for this frame. This object should have the same structure as NormalizedBoundingPoly |
timeOffset |
Object |
Timestamp of this frame. This object should have the same structure as Duration |
- Source:
- See:
TextSegment
Video segment level annotation results for text detection.
Properties:
Name | Type | Description |
---|---|---|
segment |
Object |
Video segment where a text snippet was detected. This object should have the same structure as VideoSegment |
confidence |
number |
Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. |
frames |
Array.<Object> |
Information related to the frames where OCR detected text appears. This object should have the same structure as TextFrame |
- Source:
- See:
TimestampedObject
For tracking related features, such as LOGO_RECOGNITION, FACE_DETECTION, CELEBRITY_RECOGNITION, PERSON_DETECTION. An object at time_offset with attributes, and located with normalized_bounding_box.
Properties:
Name | Type | Description |
---|---|---|
normalizedBoundingBox |
Object |
Normalized Bounding box in a frame, where the object is located. This object should have the same structure as NormalizedBoundingBox |
timeOffset |
Object |
Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. This object should have the same structure as Duration |
attributes |
Array.<Object> |
Optional. The attributes of the object in the bounding box. This object should have the same structure as DetectedAttribute |
- Source:
- See:
Track
A track of an object instance.
Properties:
Name | Type | Description |
---|---|---|
segment |
Object |
Video segment of a track. This object should have the same structure as VideoSegment |
timestampedObjects |
Array.<Object> |
The object with timestamp and attributes per frame in the track. This object should have the same structure as TimestampedObject |
attributes |
Array.<Object> |
Optional. Attributes in the track level. This object should have the same structure as DetectedAttribute |
confidence |
number |
Optional. The confidence score of the tracked object. |
- Source:
- See:
VideoAnnotationProgress
Annotation progress for a single video.
Properties:
Name | Type | Description |
---|---|---|
inputUri |
string |
Video file location in Google Cloud Storage. |
progressPercent |
number |
Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. |
startTime |
Object |
Time when the request was received. This object should have the same structure as Timestamp |
updateTime |
Object |
Time of the most recent update. This object should have the same structure as Timestamp |
- Source:
- See:
VideoAnnotationResults
Annotation results for a single video.
Properties:
Name | Type | Description |
---|---|---|
inputUri |
string |
Video file location in Google Cloud Storage. |
segmentLabelAnnotations |
Array.<Object> |
Label annotations on video level or user specified segment level. There is exactly one element for each unique label. This object should have the same structure as LabelAnnotation |
shotLabelAnnotations |
Array.<Object> |
Label annotations on shot level. There is exactly one element for each unique label. This object should have the same structure as LabelAnnotation |
frameLabelAnnotations |
Array.<Object> |
Label annotations on frame level. There is exactly one element for each unique label. This object should have the same structure as LabelAnnotation |
shotAnnotations |
Array.<Object> |
Shot annotations. Each shot is represented as a video segment. This object should have the same structure as VideoSegment |
explicitAnnotation |
Object |
Explicit content annotation. This object should have the same structure as ExplicitContentAnnotation |
speechTranscriptions |
Array.<Object> |
Speech transcription. This object should have the same structure as SpeechTranscription |
textAnnotations |
Array.<Object> |
OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. This object should have the same structure as TextAnnotation |
objectAnnotations |
Array.<Object> |
Annotations for list of objects detected and tracked in video. This object should have the same structure as ObjectTrackingAnnotation |
logoRecognitionAnnotations |
Array.<Object> |
Annotations for list of logos detected, tracked and recognized in video. This object should have the same structure as LogoRecognitionAnnotation |
error |
Object |
If set, indicates an error. Note that for a single This object should have the same structure as Status |
- Source:
- See:
VideoContext
Video context and/or feature-specific parameters.
Properties:
Name | Type | Description |
---|---|---|
segments |
Array.<Object> |
Video segments to annotate. The segments may overlap and are not required to be contiguous or span the whole video. If unspecified, each video is treated as a single segment. This object should have the same structure as VideoSegment |
labelDetectionConfig |
Object |
Config for LABEL_DETECTION. This object should have the same structure as LabelDetectionConfig |
shotChangeDetectionConfig |
Object |
Config for SHOT_CHANGE_DETECTION. This object should have the same structure as ShotChangeDetectionConfig |
explicitContentDetectionConfig |
Object |
Config for EXPLICIT_CONTENT_DETECTION. This object should have the same structure as ExplicitContentDetectionConfig |
speechTranscriptionConfig |
Object |
Config for SPEECH_TRANSCRIPTION. This object should have the same structure as SpeechTranscriptionConfig |
textDetectionConfig |
Object |
Config for TEXT_DETECTION. This object should have the same structure as TextDetectionConfig |
objectTrackingConfig |
Object |
Config for OBJECT_TRACKING. This object should have the same structure as ObjectTrackingConfig |
- Source:
- See:
VideoSegment
Video segment.
Properties:
Name | Type | Description |
---|---|---|
startTimeOffset |
Object |
Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). This object should have the same structure as Duration |
endTimeOffset |
Object |
Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). This object should have the same structure as Duration |
- Source:
- See:
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
.
Properties:
Name | Type | Description |
---|---|---|
startTime |
Object |
Time offset relative to the beginning of the audio, and
corresponding to the start of the spoken word. This field is only set if
This object should have the same structure as Duration |
endTime |
Object |
Time offset relative to the beginning of the audio, and
corresponding to the end of the spoken word. This field is only set if
This object should have the same structure as Duration |
word |
string |
The word corresponding to this set of information. |
confidence |
number |
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 |
speakerTag |
number |
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. |