@maxim_mazurok/gapi.client.videointelligence-v1beta2 0.0.20220303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1900 -0
- package/package.json +20 -0
- package/readme.md +73 -0
- package/tests.ts +106 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1900 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Cloud Video Intelligence API v1beta2 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/video-intelligence/docs/
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
// TypeScript Version: 2.8
|
|
8
|
+
|
|
9
|
+
// IMPORTANT
|
|
10
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
|
+
// Generated from: https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2
|
|
13
|
+
// Revision: 20220303
|
|
14
|
+
|
|
15
|
+
/// <reference types="gapi.client" />
|
|
16
|
+
|
|
17
|
+
declare namespace gapi.client {
|
|
18
|
+
/** Load Cloud Video Intelligence API v1beta2 */
|
|
19
|
+
function load(urlOrObject: "https://videointelligence.googleapis.com/$discovery/rest?version=v1beta2"): Promise<void>;
|
|
20
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
21
|
+
function load(name: "videointelligence", version: "v1beta2"): Promise<void>;
|
|
22
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
23
|
+
function load(name: "videointelligence", version: "v1beta2", callback: () => any): void;
|
|
24
|
+
|
|
25
|
+
namespace videointelligence {
|
|
26
|
+
interface GoogleCloudVideointelligenceV1_AnnotateVideoProgress {
|
|
27
|
+
/** Progress metadata for all videos specified in `AnnotateVideoRequest`. */
|
|
28
|
+
annotationProgress?: GoogleCloudVideointelligenceV1_VideoAnnotationProgress[];
|
|
29
|
+
}
|
|
30
|
+
interface GoogleCloudVideointelligenceV1_AnnotateVideoResponse {
|
|
31
|
+
/** Annotation results for all videos specified in `AnnotateVideoRequest`. */
|
|
32
|
+
annotationResults?: GoogleCloudVideointelligenceV1_VideoAnnotationResults[];
|
|
33
|
+
}
|
|
34
|
+
interface GoogleCloudVideointelligenceV1_DetectedAttribute {
|
|
35
|
+
/** Detected attribute confidence. Range [0, 1]. */
|
|
36
|
+
confidence?: number;
|
|
37
|
+
/** 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. */
|
|
38
|
+
name?: string;
|
|
39
|
+
/** Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. */
|
|
40
|
+
value?: string;
|
|
41
|
+
}
|
|
42
|
+
interface GoogleCloudVideointelligenceV1_DetectedLandmark {
|
|
43
|
+
/** The confidence score of the detected landmark. Range [0, 1]. */
|
|
44
|
+
confidence?: number;
|
|
45
|
+
/** The name of this landmark, for example, left_hand, right_shoulder. */
|
|
46
|
+
name?: string;
|
|
47
|
+
/** The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1. */
|
|
48
|
+
point?: GoogleCloudVideointelligenceV1_NormalizedVertex;
|
|
49
|
+
}
|
|
50
|
+
interface GoogleCloudVideointelligenceV1_Entity {
|
|
51
|
+
/** Textual description, e.g., `Fixed-gear bicycle`. */
|
|
52
|
+
description?: string;
|
|
53
|
+
/** Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/). */
|
|
54
|
+
entityId?: string;
|
|
55
|
+
/** Language code for `description` in BCP-47 format. */
|
|
56
|
+
languageCode?: string;
|
|
57
|
+
}
|
|
58
|
+
interface GoogleCloudVideointelligenceV1_ExplicitContentAnnotation {
|
|
59
|
+
/** All video frames where explicit content was detected. */
|
|
60
|
+
frames?: GoogleCloudVideointelligenceV1_ExplicitContentFrame[];
|
|
61
|
+
/** Feature version. */
|
|
62
|
+
version?: string;
|
|
63
|
+
}
|
|
64
|
+
interface GoogleCloudVideointelligenceV1_ExplicitContentFrame {
|
|
65
|
+
/** Likelihood of the pornography content.. */
|
|
66
|
+
pornographyLikelihood?: string;
|
|
67
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
68
|
+
timeOffset?: string;
|
|
69
|
+
}
|
|
70
|
+
interface GoogleCloudVideointelligenceV1_FaceAnnotation {
|
|
71
|
+
/** All video frames where a face was detected. */
|
|
72
|
+
frames?: GoogleCloudVideointelligenceV1_FaceFrame[];
|
|
73
|
+
/** All video segments where a face was detected. */
|
|
74
|
+
segments?: GoogleCloudVideointelligenceV1_FaceSegment[];
|
|
75
|
+
/** Thumbnail of a representative face view (in JPEG format). */
|
|
76
|
+
thumbnail?: string;
|
|
77
|
+
}
|
|
78
|
+
interface GoogleCloudVideointelligenceV1_FaceDetectionAnnotation {
|
|
79
|
+
/** The thumbnail of a person's face. */
|
|
80
|
+
thumbnail?: string;
|
|
81
|
+
/** The face tracks with attributes. */
|
|
82
|
+
tracks?: GoogleCloudVideointelligenceV1_Track[];
|
|
83
|
+
/** Feature version. */
|
|
84
|
+
version?: string;
|
|
85
|
+
}
|
|
86
|
+
interface GoogleCloudVideointelligenceV1_FaceFrame {
|
|
87
|
+
/** Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. */
|
|
88
|
+
normalizedBoundingBoxes?: GoogleCloudVideointelligenceV1_NormalizedBoundingBox[];
|
|
89
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
90
|
+
timeOffset?: string;
|
|
91
|
+
}
|
|
92
|
+
interface GoogleCloudVideointelligenceV1_FaceSegment {
|
|
93
|
+
/** Video segment where a face was detected. */
|
|
94
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
95
|
+
}
|
|
96
|
+
interface GoogleCloudVideointelligenceV1_LabelAnnotation {
|
|
97
|
+
/**
|
|
98
|
+
* Common categories for the detected entity. For example, when the label is `Terrier`, the category is likely `dog`. And in some cases there might be more than one categories e.g.,
|
|
99
|
+
* `Terrier` could also be a `pet`.
|
|
100
|
+
*/
|
|
101
|
+
categoryEntities?: GoogleCloudVideointelligenceV1_Entity[];
|
|
102
|
+
/** Detected entity. */
|
|
103
|
+
entity?: GoogleCloudVideointelligenceV1_Entity;
|
|
104
|
+
/** All video frames where a label was detected. */
|
|
105
|
+
frames?: GoogleCloudVideointelligenceV1_LabelFrame[];
|
|
106
|
+
/** All video segments where a label was detected. */
|
|
107
|
+
segments?: GoogleCloudVideointelligenceV1_LabelSegment[];
|
|
108
|
+
/** Feature version. */
|
|
109
|
+
version?: string;
|
|
110
|
+
}
|
|
111
|
+
interface GoogleCloudVideointelligenceV1_LabelFrame {
|
|
112
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
113
|
+
confidence?: number;
|
|
114
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
115
|
+
timeOffset?: string;
|
|
116
|
+
}
|
|
117
|
+
interface GoogleCloudVideointelligenceV1_LabelSegment {
|
|
118
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
119
|
+
confidence?: number;
|
|
120
|
+
/** Video segment where a label was detected. */
|
|
121
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
122
|
+
}
|
|
123
|
+
interface GoogleCloudVideointelligenceV1_LogoRecognitionAnnotation {
|
|
124
|
+
/** Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. */
|
|
125
|
+
entity?: GoogleCloudVideointelligenceV1_Entity;
|
|
126
|
+
/** All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. */
|
|
127
|
+
segments?: GoogleCloudVideointelligenceV1_VideoSegment[];
|
|
128
|
+
/** All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. */
|
|
129
|
+
tracks?: GoogleCloudVideointelligenceV1_Track[];
|
|
130
|
+
}
|
|
131
|
+
interface GoogleCloudVideointelligenceV1_NormalizedBoundingBox {
|
|
132
|
+
/** Bottom Y coordinate. */
|
|
133
|
+
bottom?: number;
|
|
134
|
+
/** Left X coordinate. */
|
|
135
|
+
left?: number;
|
|
136
|
+
/** Right X coordinate. */
|
|
137
|
+
right?: number;
|
|
138
|
+
/** Top Y coordinate. */
|
|
139
|
+
top?: number;
|
|
140
|
+
}
|
|
141
|
+
interface GoogleCloudVideointelligenceV1_NormalizedBoundingPoly {
|
|
142
|
+
/** Normalized vertices of the bounding polygon. */
|
|
143
|
+
vertices?: GoogleCloudVideointelligenceV1_NormalizedVertex[];
|
|
144
|
+
}
|
|
145
|
+
interface GoogleCloudVideointelligenceV1_NormalizedVertex {
|
|
146
|
+
/** X coordinate. */
|
|
147
|
+
x?: number;
|
|
148
|
+
/** Y coordinate. */
|
|
149
|
+
y?: number;
|
|
150
|
+
}
|
|
151
|
+
interface GoogleCloudVideointelligenceV1_ObjectTrackingAnnotation {
|
|
152
|
+
/** Object category's labeling confidence of this track. */
|
|
153
|
+
confidence?: number;
|
|
154
|
+
/** Entity to specify the object category that this track is labeled as. */
|
|
155
|
+
entity?: GoogleCloudVideointelligenceV1_Entity;
|
|
156
|
+
/**
|
|
157
|
+
* 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:
|
|
158
|
+
* it can only be one ObjectTrackingFrame message in frames.
|
|
159
|
+
*/
|
|
160
|
+
frames?: GoogleCloudVideointelligenceV1_ObjectTrackingFrame[];
|
|
161
|
+
/** Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. */
|
|
162
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
163
|
+
/**
|
|
164
|
+
* 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
|
|
165
|
+
* unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.
|
|
166
|
+
*/
|
|
167
|
+
trackId?: string;
|
|
168
|
+
/** Feature version. */
|
|
169
|
+
version?: string;
|
|
170
|
+
}
|
|
171
|
+
interface GoogleCloudVideointelligenceV1_ObjectTrackingFrame {
|
|
172
|
+
/** The normalized bounding box location of this object track for the frame. */
|
|
173
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1_NormalizedBoundingBox;
|
|
174
|
+
/** The timestamp of the frame in microseconds. */
|
|
175
|
+
timeOffset?: string;
|
|
176
|
+
}
|
|
177
|
+
interface GoogleCloudVideointelligenceV1_PersonDetectionAnnotation {
|
|
178
|
+
/** The detected tracks of a person. */
|
|
179
|
+
tracks?: GoogleCloudVideointelligenceV1_Track[];
|
|
180
|
+
/** Feature version. */
|
|
181
|
+
version?: string;
|
|
182
|
+
}
|
|
183
|
+
interface GoogleCloudVideointelligenceV1_SpeechRecognitionAlternative {
|
|
184
|
+
/**
|
|
185
|
+
* 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
|
|
186
|
+
* 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
|
|
187
|
+
* `confidence` was not set.
|
|
188
|
+
*/
|
|
189
|
+
confidence?: number;
|
|
190
|
+
/** Transcript text representing the words that the user spoke. */
|
|
191
|
+
transcript?: string;
|
|
192
|
+
/**
|
|
193
|
+
* 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
|
|
194
|
+
* the audio.
|
|
195
|
+
*/
|
|
196
|
+
words?: GoogleCloudVideointelligenceV1_WordInfo[];
|
|
197
|
+
}
|
|
198
|
+
interface GoogleCloudVideointelligenceV1_SpeechTranscription {
|
|
199
|
+
/**
|
|
200
|
+
* 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)
|
|
201
|
+
* alternative being the most probable, as ranked by the recognizer.
|
|
202
|
+
*/
|
|
203
|
+
alternatives?: GoogleCloudVideointelligenceV1_SpeechRecognitionAlternative[];
|
|
204
|
+
/**
|
|
205
|
+
* 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
|
|
206
|
+
* being spoken in the audio.
|
|
207
|
+
*/
|
|
208
|
+
languageCode?: string;
|
|
209
|
+
}
|
|
210
|
+
interface GoogleCloudVideointelligenceV1_TextAnnotation {
|
|
211
|
+
/** All video segments where OCR detected text appears. */
|
|
212
|
+
segments?: GoogleCloudVideointelligenceV1_TextSegment[];
|
|
213
|
+
/** The detected text. */
|
|
214
|
+
text?: string;
|
|
215
|
+
/** Feature version. */
|
|
216
|
+
version?: string;
|
|
217
|
+
}
|
|
218
|
+
interface GoogleCloudVideointelligenceV1_TextFrame {
|
|
219
|
+
/** Bounding polygon of the detected text for this frame. */
|
|
220
|
+
rotatedBoundingBox?: GoogleCloudVideointelligenceV1_NormalizedBoundingPoly;
|
|
221
|
+
/** Timestamp of this frame. */
|
|
222
|
+
timeOffset?: string;
|
|
223
|
+
}
|
|
224
|
+
interface GoogleCloudVideointelligenceV1_TextSegment {
|
|
225
|
+
/** Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. */
|
|
226
|
+
confidence?: number;
|
|
227
|
+
/** Information related to the frames where OCR detected text appears. */
|
|
228
|
+
frames?: GoogleCloudVideointelligenceV1_TextFrame[];
|
|
229
|
+
/** Video segment where a text snippet was detected. */
|
|
230
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
231
|
+
}
|
|
232
|
+
interface GoogleCloudVideointelligenceV1_TimestampedObject {
|
|
233
|
+
/** Optional. The attributes of the object in the bounding box. */
|
|
234
|
+
attributes?: GoogleCloudVideointelligenceV1_DetectedAttribute[];
|
|
235
|
+
/** Optional. The detected landmarks. */
|
|
236
|
+
landmarks?: GoogleCloudVideointelligenceV1_DetectedLandmark[];
|
|
237
|
+
/** Normalized Bounding box in a frame, where the object is located. */
|
|
238
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1_NormalizedBoundingBox;
|
|
239
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. */
|
|
240
|
+
timeOffset?: string;
|
|
241
|
+
}
|
|
242
|
+
interface GoogleCloudVideointelligenceV1_Track {
|
|
243
|
+
/** Optional. Attributes in the track level. */
|
|
244
|
+
attributes?: GoogleCloudVideointelligenceV1_DetectedAttribute[];
|
|
245
|
+
/** Optional. The confidence score of the tracked object. */
|
|
246
|
+
confidence?: number;
|
|
247
|
+
/** Video segment of a track. */
|
|
248
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
249
|
+
/** The object with timestamp and attributes per frame in the track. */
|
|
250
|
+
timestampedObjects?: GoogleCloudVideointelligenceV1_TimestampedObject[];
|
|
251
|
+
}
|
|
252
|
+
interface GoogleCloudVideointelligenceV1_VideoAnnotationProgress {
|
|
253
|
+
/** Specifies which feature is being tracked if the request contains more than one feature. */
|
|
254
|
+
feature?: string;
|
|
255
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
256
|
+
inputUri?: string;
|
|
257
|
+
/** Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. */
|
|
258
|
+
progressPercent?: number;
|
|
259
|
+
/** Specifies which segment is being tracked if the request contains more than one segment. */
|
|
260
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
261
|
+
/** Time when the request was received. */
|
|
262
|
+
startTime?: string;
|
|
263
|
+
/** Time of the most recent update. */
|
|
264
|
+
updateTime?: string;
|
|
265
|
+
}
|
|
266
|
+
interface GoogleCloudVideointelligenceV1_VideoAnnotationResults {
|
|
267
|
+
/** If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */
|
|
268
|
+
error?: GoogleRpc_Status;
|
|
269
|
+
/** Explicit content annotation. */
|
|
270
|
+
explicitAnnotation?: GoogleCloudVideointelligenceV1_ExplicitContentAnnotation;
|
|
271
|
+
/** Deprecated. Please use `face_detection_annotations` instead. */
|
|
272
|
+
faceAnnotations?: GoogleCloudVideointelligenceV1_FaceAnnotation[];
|
|
273
|
+
/** Face detection annotations. */
|
|
274
|
+
faceDetectionAnnotations?: GoogleCloudVideointelligenceV1_FaceDetectionAnnotation[];
|
|
275
|
+
/** Label annotations on frame level. There is exactly one element for each unique label. */
|
|
276
|
+
frameLabelAnnotations?: GoogleCloudVideointelligenceV1_LabelAnnotation[];
|
|
277
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
278
|
+
inputUri?: string;
|
|
279
|
+
/** Annotations for list of logos detected, tracked and recognized in video. */
|
|
280
|
+
logoRecognitionAnnotations?: GoogleCloudVideointelligenceV1_LogoRecognitionAnnotation[];
|
|
281
|
+
/** Annotations for list of objects detected and tracked in video. */
|
|
282
|
+
objectAnnotations?: GoogleCloudVideointelligenceV1_ObjectTrackingAnnotation[];
|
|
283
|
+
/** Person detection annotations. */
|
|
284
|
+
personDetectionAnnotations?: GoogleCloudVideointelligenceV1_PersonDetectionAnnotation[];
|
|
285
|
+
/** Video segment on which the annotation is run. */
|
|
286
|
+
segment?: GoogleCloudVideointelligenceV1_VideoSegment;
|
|
287
|
+
/** Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label. */
|
|
288
|
+
segmentLabelAnnotations?: GoogleCloudVideointelligenceV1_LabelAnnotation[];
|
|
289
|
+
/**
|
|
290
|
+
* 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
|
|
291
|
+
* `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
|
|
292
|
+
* `LabelDetectionConfig.model` to "builtin/latest" in the request.
|
|
293
|
+
*/
|
|
294
|
+
segmentPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1_LabelAnnotation[];
|
|
295
|
+
/** Shot annotations. Each shot is represented as a video segment. */
|
|
296
|
+
shotAnnotations?: GoogleCloudVideointelligenceV1_VideoSegment[];
|
|
297
|
+
/** Topical label annotations on shot level. There is exactly one element for each unique label. */
|
|
298
|
+
shotLabelAnnotations?: GoogleCloudVideointelligenceV1_LabelAnnotation[];
|
|
299
|
+
/**
|
|
300
|
+
* 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
|
|
301
|
+
* 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.
|
|
302
|
+
*/
|
|
303
|
+
shotPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1_LabelAnnotation[];
|
|
304
|
+
/** Speech transcription. */
|
|
305
|
+
speechTranscriptions?: GoogleCloudVideointelligenceV1_SpeechTranscription[];
|
|
306
|
+
/** OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. */
|
|
307
|
+
textAnnotations?: GoogleCloudVideointelligenceV1_TextAnnotation[];
|
|
308
|
+
}
|
|
309
|
+
interface GoogleCloudVideointelligenceV1_VideoSegment {
|
|
310
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). */
|
|
311
|
+
endTimeOffset?: string;
|
|
312
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). */
|
|
313
|
+
startTimeOffset?: string;
|
|
314
|
+
}
|
|
315
|
+
interface GoogleCloudVideointelligenceV1_WordInfo {
|
|
316
|
+
/**
|
|
317
|
+
* 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
|
|
318
|
+
* 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
|
|
319
|
+
* `confidence` was not set.
|
|
320
|
+
*/
|
|
321
|
+
confidence?: number;
|
|
322
|
+
/**
|
|
323
|
+
* 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
|
|
324
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
325
|
+
*/
|
|
326
|
+
endTime?: string;
|
|
327
|
+
/**
|
|
328
|
+
* 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
|
|
329
|
+
* ranges from 1 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
|
|
330
|
+
*/
|
|
331
|
+
speakerTag?: number;
|
|
332
|
+
/**
|
|
333
|
+
* 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
|
|
334
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
335
|
+
*/
|
|
336
|
+
startTime?: string;
|
|
337
|
+
/** The word corresponding to this set of information. */
|
|
338
|
+
word?: string;
|
|
339
|
+
}
|
|
340
|
+
interface GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress {
|
|
341
|
+
/** Progress metadata for all videos specified in `AnnotateVideoRequest`. */
|
|
342
|
+
annotationProgress?: GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress[];
|
|
343
|
+
}
|
|
344
|
+
interface GoogleCloudVideointelligenceV1beta2_AnnotateVideoRequest {
|
|
345
|
+
/** Required. Requested video annotation features. */
|
|
346
|
+
features?: string[];
|
|
347
|
+
/** The video data bytes. If unset, the input video(s) should be specified via the `input_uri`. If set, `input_uri` must be unset. */
|
|
348
|
+
inputContent?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Input video location. Currently, only [Cloud Storage](https://cloud.google.com/storage/) URIs are supported. URIs must be specified in the following format:
|
|
351
|
+
* `gs://bucket-id/object-id` (other URI formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request
|
|
352
|
+
* 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
|
|
353
|
+
* 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.
|
|
354
|
+
*/
|
|
355
|
+
inputUri?: string;
|
|
356
|
+
/**
|
|
357
|
+
* 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
|
|
358
|
+
* will be determined based on video file location.
|
|
359
|
+
*/
|
|
360
|
+
locationId?: string;
|
|
361
|
+
/**
|
|
362
|
+
* 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
|
|
363
|
+
* in the following format: `gs://bucket-id/object-id` (other URI formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see [Request
|
|
364
|
+
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
|
|
365
|
+
*/
|
|
366
|
+
outputUri?: string;
|
|
367
|
+
/** Additional video context and/or feature-specific parameters. */
|
|
368
|
+
videoContext?: GoogleCloudVideointelligenceV1beta2_VideoContext;
|
|
369
|
+
}
|
|
370
|
+
interface GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse {
|
|
371
|
+
/** Annotation results for all videos specified in `AnnotateVideoRequest`. */
|
|
372
|
+
annotationResults?: GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults[];
|
|
373
|
+
}
|
|
374
|
+
interface GoogleCloudVideointelligenceV1beta2_DetectedAttribute {
|
|
375
|
+
/** Detected attribute confidence. Range [0, 1]. */
|
|
376
|
+
confidence?: number;
|
|
377
|
+
/** 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. */
|
|
378
|
+
name?: string;
|
|
379
|
+
/** Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. */
|
|
380
|
+
value?: string;
|
|
381
|
+
}
|
|
382
|
+
interface GoogleCloudVideointelligenceV1beta2_DetectedLandmark {
|
|
383
|
+
/** The confidence score of the detected landmark. Range [0, 1]. */
|
|
384
|
+
confidence?: number;
|
|
385
|
+
/** The name of this landmark, for example, left_hand, right_shoulder. */
|
|
386
|
+
name?: string;
|
|
387
|
+
/** The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1. */
|
|
388
|
+
point?: GoogleCloudVideointelligenceV1beta2_NormalizedVertex;
|
|
389
|
+
}
|
|
390
|
+
interface GoogleCloudVideointelligenceV1beta2_Entity {
|
|
391
|
+
/** Textual description, e.g., `Fixed-gear bicycle`. */
|
|
392
|
+
description?: string;
|
|
393
|
+
/** Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/). */
|
|
394
|
+
entityId?: string;
|
|
395
|
+
/** Language code for `description` in BCP-47 format. */
|
|
396
|
+
languageCode?: string;
|
|
397
|
+
}
|
|
398
|
+
interface GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation {
|
|
399
|
+
/** All video frames where explicit content was detected. */
|
|
400
|
+
frames?: GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame[];
|
|
401
|
+
/** Feature version. */
|
|
402
|
+
version?: string;
|
|
403
|
+
}
|
|
404
|
+
interface GoogleCloudVideointelligenceV1beta2_ExplicitContentDetectionConfig {
|
|
405
|
+
/** Model to use for explicit content detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". */
|
|
406
|
+
model?: string;
|
|
407
|
+
}
|
|
408
|
+
interface GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame {
|
|
409
|
+
/** Likelihood of the pornography content.. */
|
|
410
|
+
pornographyLikelihood?: string;
|
|
411
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
412
|
+
timeOffset?: string;
|
|
413
|
+
}
|
|
414
|
+
interface GoogleCloudVideointelligenceV1beta2_FaceAnnotation {
|
|
415
|
+
/** All video frames where a face was detected. */
|
|
416
|
+
frames?: GoogleCloudVideointelligenceV1beta2_FaceFrame[];
|
|
417
|
+
/** All video segments where a face was detected. */
|
|
418
|
+
segments?: GoogleCloudVideointelligenceV1beta2_FaceSegment[];
|
|
419
|
+
/** Thumbnail of a representative face view (in JPEG format). */
|
|
420
|
+
thumbnail?: string;
|
|
421
|
+
}
|
|
422
|
+
interface GoogleCloudVideointelligenceV1beta2_FaceDetectionAnnotation {
|
|
423
|
+
/** The thumbnail of a person's face. */
|
|
424
|
+
thumbnail?: string;
|
|
425
|
+
/** The face tracks with attributes. */
|
|
426
|
+
tracks?: GoogleCloudVideointelligenceV1beta2_Track[];
|
|
427
|
+
/** Feature version. */
|
|
428
|
+
version?: string;
|
|
429
|
+
}
|
|
430
|
+
interface GoogleCloudVideointelligenceV1beta2_FaceDetectionConfig {
|
|
431
|
+
/** Whether to enable face attributes detection, such as glasses, dark_glasses, mouth_open etc. Ignored if 'include_bounding_boxes' is set to false. */
|
|
432
|
+
includeAttributes?: boolean;
|
|
433
|
+
/** Whether bounding boxes are included in the face annotation output. */
|
|
434
|
+
includeBoundingBoxes?: boolean;
|
|
435
|
+
/** Model to use for face detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". */
|
|
436
|
+
model?: string;
|
|
437
|
+
}
|
|
438
|
+
interface GoogleCloudVideointelligenceV1beta2_FaceFrame {
|
|
439
|
+
/** Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. */
|
|
440
|
+
normalizedBoundingBoxes?: GoogleCloudVideointelligenceV1beta2_NormalizedBoundingBox[];
|
|
441
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
442
|
+
timeOffset?: string;
|
|
443
|
+
}
|
|
444
|
+
interface GoogleCloudVideointelligenceV1beta2_FaceSegment {
|
|
445
|
+
/** Video segment where a face was detected. */
|
|
446
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
447
|
+
}
|
|
448
|
+
interface GoogleCloudVideointelligenceV1beta2_LabelAnnotation {
|
|
449
|
+
/**
|
|
450
|
+
* Common categories for the detected entity. For example, when the label is `Terrier`, the category is likely `dog`. And in some cases there might be more than one categories e.g.,
|
|
451
|
+
* `Terrier` could also be a `pet`.
|
|
452
|
+
*/
|
|
453
|
+
categoryEntities?: GoogleCloudVideointelligenceV1beta2_Entity[];
|
|
454
|
+
/** Detected entity. */
|
|
455
|
+
entity?: GoogleCloudVideointelligenceV1beta2_Entity;
|
|
456
|
+
/** All video frames where a label was detected. */
|
|
457
|
+
frames?: GoogleCloudVideointelligenceV1beta2_LabelFrame[];
|
|
458
|
+
/** All video segments where a label was detected. */
|
|
459
|
+
segments?: GoogleCloudVideointelligenceV1beta2_LabelSegment[];
|
|
460
|
+
/** Feature version. */
|
|
461
|
+
version?: string;
|
|
462
|
+
}
|
|
463
|
+
interface GoogleCloudVideointelligenceV1beta2_LabelDetectionConfig {
|
|
464
|
+
/**
|
|
465
|
+
* 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].
|
|
466
|
+
* 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
|
|
467
|
+
* model.
|
|
468
|
+
*/
|
|
469
|
+
frameConfidenceThreshold?: number;
|
|
470
|
+
/** What labels should be detected with LABEL_DETECTION, in addition to video-level labels or segment-level labels. If unspecified, defaults to `SHOT_MODE`. */
|
|
471
|
+
labelDetectionMode?: string;
|
|
472
|
+
/** Model to use for label detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". */
|
|
473
|
+
model?: string;
|
|
474
|
+
/**
|
|
475
|
+
* 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
|
|
476
|
+
* `SHOT_AND_FRAME_MODE` enabled.
|
|
477
|
+
*/
|
|
478
|
+
stationaryCamera?: boolean;
|
|
479
|
+
/**
|
|
480
|
+
* 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
|
|
481
|
+
* [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
|
|
482
|
+
* a new model.
|
|
483
|
+
*/
|
|
484
|
+
videoConfidenceThreshold?: number;
|
|
485
|
+
}
|
|
486
|
+
interface GoogleCloudVideointelligenceV1beta2_LabelFrame {
|
|
487
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
488
|
+
confidence?: number;
|
|
489
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
490
|
+
timeOffset?: string;
|
|
491
|
+
}
|
|
492
|
+
interface GoogleCloudVideointelligenceV1beta2_LabelSegment {
|
|
493
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
494
|
+
confidence?: number;
|
|
495
|
+
/** Video segment where a label was detected. */
|
|
496
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
497
|
+
}
|
|
498
|
+
interface GoogleCloudVideointelligenceV1beta2_LogoRecognitionAnnotation {
|
|
499
|
+
/** Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. */
|
|
500
|
+
entity?: GoogleCloudVideointelligenceV1beta2_Entity;
|
|
501
|
+
/** All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. */
|
|
502
|
+
segments?: GoogleCloudVideointelligenceV1beta2_VideoSegment[];
|
|
503
|
+
/** All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. */
|
|
504
|
+
tracks?: GoogleCloudVideointelligenceV1beta2_Track[];
|
|
505
|
+
}
|
|
506
|
+
interface GoogleCloudVideointelligenceV1beta2_NormalizedBoundingBox {
|
|
507
|
+
/** Bottom Y coordinate. */
|
|
508
|
+
bottom?: number;
|
|
509
|
+
/** Left X coordinate. */
|
|
510
|
+
left?: number;
|
|
511
|
+
/** Right X coordinate. */
|
|
512
|
+
right?: number;
|
|
513
|
+
/** Top Y coordinate. */
|
|
514
|
+
top?: number;
|
|
515
|
+
}
|
|
516
|
+
interface GoogleCloudVideointelligenceV1beta2_NormalizedBoundingPoly {
|
|
517
|
+
/** Normalized vertices of the bounding polygon. */
|
|
518
|
+
vertices?: GoogleCloudVideointelligenceV1beta2_NormalizedVertex[];
|
|
519
|
+
}
|
|
520
|
+
interface GoogleCloudVideointelligenceV1beta2_NormalizedVertex {
|
|
521
|
+
/** X coordinate. */
|
|
522
|
+
x?: number;
|
|
523
|
+
/** Y coordinate. */
|
|
524
|
+
y?: number;
|
|
525
|
+
}
|
|
526
|
+
interface GoogleCloudVideointelligenceV1beta2_ObjectTrackingAnnotation {
|
|
527
|
+
/** Object category's labeling confidence of this track. */
|
|
528
|
+
confidence?: number;
|
|
529
|
+
/** Entity to specify the object category that this track is labeled as. */
|
|
530
|
+
entity?: GoogleCloudVideointelligenceV1beta2_Entity;
|
|
531
|
+
/**
|
|
532
|
+
* 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:
|
|
533
|
+
* it can only be one ObjectTrackingFrame message in frames.
|
|
534
|
+
*/
|
|
535
|
+
frames?: GoogleCloudVideointelligenceV1beta2_ObjectTrackingFrame[];
|
|
536
|
+
/** Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. */
|
|
537
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
538
|
+
/**
|
|
539
|
+
* 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
|
|
540
|
+
* unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.
|
|
541
|
+
*/
|
|
542
|
+
trackId?: string;
|
|
543
|
+
/** Feature version. */
|
|
544
|
+
version?: string;
|
|
545
|
+
}
|
|
546
|
+
interface GoogleCloudVideointelligenceV1beta2_ObjectTrackingConfig {
|
|
547
|
+
/** Model to use for object tracking. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". */
|
|
548
|
+
model?: string;
|
|
549
|
+
}
|
|
550
|
+
interface GoogleCloudVideointelligenceV1beta2_ObjectTrackingFrame {
|
|
551
|
+
/** The normalized bounding box location of this object track for the frame. */
|
|
552
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1beta2_NormalizedBoundingBox;
|
|
553
|
+
/** The timestamp of the frame in microseconds. */
|
|
554
|
+
timeOffset?: string;
|
|
555
|
+
}
|
|
556
|
+
interface GoogleCloudVideointelligenceV1beta2_PersonDetectionAnnotation {
|
|
557
|
+
/** The detected tracks of a person. */
|
|
558
|
+
tracks?: GoogleCloudVideointelligenceV1beta2_Track[];
|
|
559
|
+
/** Feature version. */
|
|
560
|
+
version?: string;
|
|
561
|
+
}
|
|
562
|
+
interface GoogleCloudVideointelligenceV1beta2_PersonDetectionConfig {
|
|
563
|
+
/**
|
|
564
|
+
* 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
|
|
565
|
+
* 'include_bounding_boxes' is set to false.
|
|
566
|
+
*/
|
|
567
|
+
includeAttributes?: boolean;
|
|
568
|
+
/** Whether bounding boxes are included in the person detection annotation output. */
|
|
569
|
+
includeBoundingBoxes?: boolean;
|
|
570
|
+
/** Whether to enable pose landmarks detection. Ignored if 'include_bounding_boxes' is set to false. */
|
|
571
|
+
includePoseLandmarks?: boolean;
|
|
572
|
+
}
|
|
573
|
+
interface GoogleCloudVideointelligenceV1beta2_ShotChangeDetectionConfig {
|
|
574
|
+
/** Model to use for shot change detection. Supported values: "builtin/stable" (the default if unset), "builtin/latest", and "builtin/legacy". */
|
|
575
|
+
model?: string;
|
|
576
|
+
}
|
|
577
|
+
interface GoogleCloudVideointelligenceV1beta2_SpeechContext {
|
|
578
|
+
/**
|
|
579
|
+
* 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
|
|
580
|
+
* 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.
|
|
581
|
+
* See [usage limits](https://cloud.google.com/speech/limits#content).
|
|
582
|
+
*/
|
|
583
|
+
phrases?: string[];
|
|
584
|
+
}
|
|
585
|
+
interface GoogleCloudVideointelligenceV1beta2_SpeechRecognitionAlternative {
|
|
586
|
+
/**
|
|
587
|
+
* 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
|
|
588
|
+
* 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
|
|
589
|
+
* `confidence` was not set.
|
|
590
|
+
*/
|
|
591
|
+
confidence?: number;
|
|
592
|
+
/** Transcript text representing the words that the user spoke. */
|
|
593
|
+
transcript?: string;
|
|
594
|
+
/**
|
|
595
|
+
* 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
|
|
596
|
+
* the audio.
|
|
597
|
+
*/
|
|
598
|
+
words?: GoogleCloudVideointelligenceV1beta2_WordInfo[];
|
|
599
|
+
}
|
|
600
|
+
interface GoogleCloudVideointelligenceV1beta2_SpeechTranscription {
|
|
601
|
+
/**
|
|
602
|
+
* 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)
|
|
603
|
+
* alternative being the most probable, as ranked by the recognizer.
|
|
604
|
+
*/
|
|
605
|
+
alternatives?: GoogleCloudVideointelligenceV1beta2_SpeechRecognitionAlternative[];
|
|
606
|
+
/**
|
|
607
|
+
* 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
|
|
608
|
+
* being spoken in the audio.
|
|
609
|
+
*/
|
|
610
|
+
languageCode?: string;
|
|
611
|
+
}
|
|
612
|
+
interface GoogleCloudVideointelligenceV1beta2_SpeechTranscriptionConfig {
|
|
613
|
+
/** Optional. For file formats, such as MXF or MKV, supporting multiple audio tracks, specify up to two tracks. Default: track 0. */
|
|
614
|
+
audioTracks?: number[];
|
|
615
|
+
/** 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. */
|
|
616
|
+
diarizationSpeakerCount?: number;
|
|
617
|
+
/**
|
|
618
|
+
* 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
|
|
619
|
+
* 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
|
|
620
|
+
* the future this may be exclusively available as a premium feature."
|
|
621
|
+
*/
|
|
622
|
+
enableAutomaticPunctuation?: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* 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
|
|
625
|
+
* 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
|
|
626
|
+
* models learn to identify the speakers in the conversation over time.
|
|
627
|
+
*/
|
|
628
|
+
enableSpeakerDiarization?: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* 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
|
|
631
|
+
* `false`.
|
|
632
|
+
*/
|
|
633
|
+
enableWordConfidence?: boolean;
|
|
634
|
+
/**
|
|
635
|
+
* 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
|
|
636
|
+
* `false` or omitted, profanities won't be filtered out.
|
|
637
|
+
*/
|
|
638
|
+
filterProfanity?: boolean;
|
|
639
|
+
/**
|
|
640
|
+
* 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
|
|
641
|
+
* Support](https://cloud.google.com/speech/docs/languages) for a list of the currently supported language codes.
|
|
642
|
+
*/
|
|
643
|
+
languageCode?: string;
|
|
644
|
+
/**
|
|
645
|
+
* Optional. Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of `SpeechRecognitionAlternative` messages within each `SpeechTranscription`. The
|
|
646
|
+
* 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.
|
|
647
|
+
*/
|
|
648
|
+
maxAlternatives?: number;
|
|
649
|
+
/** Optional. A means to provide context to assist the speech recognition. */
|
|
650
|
+
speechContexts?: GoogleCloudVideointelligenceV1beta2_SpeechContext[];
|
|
651
|
+
}
|
|
652
|
+
interface GoogleCloudVideointelligenceV1beta2_TextAnnotation {
|
|
653
|
+
/** All video segments where OCR detected text appears. */
|
|
654
|
+
segments?: GoogleCloudVideointelligenceV1beta2_TextSegment[];
|
|
655
|
+
/** The detected text. */
|
|
656
|
+
text?: string;
|
|
657
|
+
/** Feature version. */
|
|
658
|
+
version?: string;
|
|
659
|
+
}
|
|
660
|
+
interface GoogleCloudVideointelligenceV1beta2_TextDetectionConfig {
|
|
661
|
+
/**
|
|
662
|
+
* 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.
|
|
663
|
+
* Automatic language detection is performed if no hint is provided.
|
|
664
|
+
*/
|
|
665
|
+
languageHints?: string[];
|
|
666
|
+
/** Model to use for text detection. Supported values: "builtin/stable" (the default if unset) and "builtin/latest". */
|
|
667
|
+
model?: string;
|
|
668
|
+
}
|
|
669
|
+
interface GoogleCloudVideointelligenceV1beta2_TextFrame {
|
|
670
|
+
/** Bounding polygon of the detected text for this frame. */
|
|
671
|
+
rotatedBoundingBox?: GoogleCloudVideointelligenceV1beta2_NormalizedBoundingPoly;
|
|
672
|
+
/** Timestamp of this frame. */
|
|
673
|
+
timeOffset?: string;
|
|
674
|
+
}
|
|
675
|
+
interface GoogleCloudVideointelligenceV1beta2_TextSegment {
|
|
676
|
+
/** Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. */
|
|
677
|
+
confidence?: number;
|
|
678
|
+
/** Information related to the frames where OCR detected text appears. */
|
|
679
|
+
frames?: GoogleCloudVideointelligenceV1beta2_TextFrame[];
|
|
680
|
+
/** Video segment where a text snippet was detected. */
|
|
681
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
682
|
+
}
|
|
683
|
+
interface GoogleCloudVideointelligenceV1beta2_TimestampedObject {
|
|
684
|
+
/** Optional. The attributes of the object in the bounding box. */
|
|
685
|
+
attributes?: GoogleCloudVideointelligenceV1beta2_DetectedAttribute[];
|
|
686
|
+
/** Optional. The detected landmarks. */
|
|
687
|
+
landmarks?: GoogleCloudVideointelligenceV1beta2_DetectedLandmark[];
|
|
688
|
+
/** Normalized Bounding box in a frame, where the object is located. */
|
|
689
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1beta2_NormalizedBoundingBox;
|
|
690
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. */
|
|
691
|
+
timeOffset?: string;
|
|
692
|
+
}
|
|
693
|
+
interface GoogleCloudVideointelligenceV1beta2_Track {
|
|
694
|
+
/** Optional. Attributes in the track level. */
|
|
695
|
+
attributes?: GoogleCloudVideointelligenceV1beta2_DetectedAttribute[];
|
|
696
|
+
/** Optional. The confidence score of the tracked object. */
|
|
697
|
+
confidence?: number;
|
|
698
|
+
/** Video segment of a track. */
|
|
699
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
700
|
+
/** The object with timestamp and attributes per frame in the track. */
|
|
701
|
+
timestampedObjects?: GoogleCloudVideointelligenceV1beta2_TimestampedObject[];
|
|
702
|
+
}
|
|
703
|
+
interface GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress {
|
|
704
|
+
/** Specifies which feature is being tracked if the request contains more than one feature. */
|
|
705
|
+
feature?: string;
|
|
706
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
707
|
+
inputUri?: string;
|
|
708
|
+
/** Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. */
|
|
709
|
+
progressPercent?: number;
|
|
710
|
+
/** Specifies which segment is being tracked if the request contains more than one segment. */
|
|
711
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
712
|
+
/** Time when the request was received. */
|
|
713
|
+
startTime?: string;
|
|
714
|
+
/** Time of the most recent update. */
|
|
715
|
+
updateTime?: string;
|
|
716
|
+
}
|
|
717
|
+
interface GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults {
|
|
718
|
+
/** If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */
|
|
719
|
+
error?: GoogleRpc_Status;
|
|
720
|
+
/** Explicit content annotation. */
|
|
721
|
+
explicitAnnotation?: GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation;
|
|
722
|
+
/** Deprecated. Please use `face_detection_annotations` instead. */
|
|
723
|
+
faceAnnotations?: GoogleCloudVideointelligenceV1beta2_FaceAnnotation[];
|
|
724
|
+
/** Face detection annotations. */
|
|
725
|
+
faceDetectionAnnotations?: GoogleCloudVideointelligenceV1beta2_FaceDetectionAnnotation[];
|
|
726
|
+
/** Label annotations on frame level. There is exactly one element for each unique label. */
|
|
727
|
+
frameLabelAnnotations?: GoogleCloudVideointelligenceV1beta2_LabelAnnotation[];
|
|
728
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
729
|
+
inputUri?: string;
|
|
730
|
+
/** Annotations for list of logos detected, tracked and recognized in video. */
|
|
731
|
+
logoRecognitionAnnotations?: GoogleCloudVideointelligenceV1beta2_LogoRecognitionAnnotation[];
|
|
732
|
+
/** Annotations for list of objects detected and tracked in video. */
|
|
733
|
+
objectAnnotations?: GoogleCloudVideointelligenceV1beta2_ObjectTrackingAnnotation[];
|
|
734
|
+
/** Person detection annotations. */
|
|
735
|
+
personDetectionAnnotations?: GoogleCloudVideointelligenceV1beta2_PersonDetectionAnnotation[];
|
|
736
|
+
/** Video segment on which the annotation is run. */
|
|
737
|
+
segment?: GoogleCloudVideointelligenceV1beta2_VideoSegment;
|
|
738
|
+
/** Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label. */
|
|
739
|
+
segmentLabelAnnotations?: GoogleCloudVideointelligenceV1beta2_LabelAnnotation[];
|
|
740
|
+
/**
|
|
741
|
+
* 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
|
|
742
|
+
* `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
|
|
743
|
+
* `LabelDetectionConfig.model` to "builtin/latest" in the request.
|
|
744
|
+
*/
|
|
745
|
+
segmentPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1beta2_LabelAnnotation[];
|
|
746
|
+
/** Shot annotations. Each shot is represented as a video segment. */
|
|
747
|
+
shotAnnotations?: GoogleCloudVideointelligenceV1beta2_VideoSegment[];
|
|
748
|
+
/** Topical label annotations on shot level. There is exactly one element for each unique label. */
|
|
749
|
+
shotLabelAnnotations?: GoogleCloudVideointelligenceV1beta2_LabelAnnotation[];
|
|
750
|
+
/**
|
|
751
|
+
* 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
|
|
752
|
+
* 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.
|
|
753
|
+
*/
|
|
754
|
+
shotPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1beta2_LabelAnnotation[];
|
|
755
|
+
/** Speech transcription. */
|
|
756
|
+
speechTranscriptions?: GoogleCloudVideointelligenceV1beta2_SpeechTranscription[];
|
|
757
|
+
/** OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. */
|
|
758
|
+
textAnnotations?: GoogleCloudVideointelligenceV1beta2_TextAnnotation[];
|
|
759
|
+
}
|
|
760
|
+
interface GoogleCloudVideointelligenceV1beta2_VideoContext {
|
|
761
|
+
/** Config for EXPLICIT_CONTENT_DETECTION. */
|
|
762
|
+
explicitContentDetectionConfig?: GoogleCloudVideointelligenceV1beta2_ExplicitContentDetectionConfig;
|
|
763
|
+
/** Config for FACE_DETECTION. */
|
|
764
|
+
faceDetectionConfig?: GoogleCloudVideointelligenceV1beta2_FaceDetectionConfig;
|
|
765
|
+
/** Config for LABEL_DETECTION. */
|
|
766
|
+
labelDetectionConfig?: GoogleCloudVideointelligenceV1beta2_LabelDetectionConfig;
|
|
767
|
+
/** Config for OBJECT_TRACKING. */
|
|
768
|
+
objectTrackingConfig?: GoogleCloudVideointelligenceV1beta2_ObjectTrackingConfig;
|
|
769
|
+
/** Config for PERSON_DETECTION. */
|
|
770
|
+
personDetectionConfig?: GoogleCloudVideointelligenceV1beta2_PersonDetectionConfig;
|
|
771
|
+
/** 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. */
|
|
772
|
+
segments?: GoogleCloudVideointelligenceV1beta2_VideoSegment[];
|
|
773
|
+
/** Config for SHOT_CHANGE_DETECTION. */
|
|
774
|
+
shotChangeDetectionConfig?: GoogleCloudVideointelligenceV1beta2_ShotChangeDetectionConfig;
|
|
775
|
+
/** Config for SPEECH_TRANSCRIPTION. */
|
|
776
|
+
speechTranscriptionConfig?: GoogleCloudVideointelligenceV1beta2_SpeechTranscriptionConfig;
|
|
777
|
+
/** Config for TEXT_DETECTION. */
|
|
778
|
+
textDetectionConfig?: GoogleCloudVideointelligenceV1beta2_TextDetectionConfig;
|
|
779
|
+
}
|
|
780
|
+
interface GoogleCloudVideointelligenceV1beta2_VideoSegment {
|
|
781
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). */
|
|
782
|
+
endTimeOffset?: string;
|
|
783
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). */
|
|
784
|
+
startTimeOffset?: string;
|
|
785
|
+
}
|
|
786
|
+
interface GoogleCloudVideointelligenceV1beta2_WordInfo {
|
|
787
|
+
/**
|
|
788
|
+
* 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
|
|
789
|
+
* 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
|
|
790
|
+
* `confidence` was not set.
|
|
791
|
+
*/
|
|
792
|
+
confidence?: number;
|
|
793
|
+
/**
|
|
794
|
+
* 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
|
|
795
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
796
|
+
*/
|
|
797
|
+
endTime?: string;
|
|
798
|
+
/**
|
|
799
|
+
* 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
|
|
800
|
+
* ranges from 1 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
|
|
801
|
+
*/
|
|
802
|
+
speakerTag?: number;
|
|
803
|
+
/**
|
|
804
|
+
* 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
|
|
805
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
806
|
+
*/
|
|
807
|
+
startTime?: string;
|
|
808
|
+
/** The word corresponding to this set of information. */
|
|
809
|
+
word?: string;
|
|
810
|
+
}
|
|
811
|
+
interface GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress {
|
|
812
|
+
/** Progress metadata for all videos specified in `AnnotateVideoRequest`. */
|
|
813
|
+
annotationProgress?: GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress[];
|
|
814
|
+
}
|
|
815
|
+
interface GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse {
|
|
816
|
+
/** Annotation results for all videos specified in `AnnotateVideoRequest`. */
|
|
817
|
+
annotationResults?: GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults[];
|
|
818
|
+
}
|
|
819
|
+
interface GoogleCloudVideointelligenceV1p1beta1_DetectedAttribute {
|
|
820
|
+
/** Detected attribute confidence. Range [0, 1]. */
|
|
821
|
+
confidence?: number;
|
|
822
|
+
/** 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. */
|
|
823
|
+
name?: string;
|
|
824
|
+
/** Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. */
|
|
825
|
+
value?: string;
|
|
826
|
+
}
|
|
827
|
+
interface GoogleCloudVideointelligenceV1p1beta1_DetectedLandmark {
|
|
828
|
+
/** The confidence score of the detected landmark. Range [0, 1]. */
|
|
829
|
+
confidence?: number;
|
|
830
|
+
/** The name of this landmark, for example, left_hand, right_shoulder. */
|
|
831
|
+
name?: string;
|
|
832
|
+
/** The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1. */
|
|
833
|
+
point?: GoogleCloudVideointelligenceV1p1beta1_NormalizedVertex;
|
|
834
|
+
}
|
|
835
|
+
interface GoogleCloudVideointelligenceV1p1beta1_Entity {
|
|
836
|
+
/** Textual description, e.g., `Fixed-gear bicycle`. */
|
|
837
|
+
description?: string;
|
|
838
|
+
/** Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/). */
|
|
839
|
+
entityId?: string;
|
|
840
|
+
/** Language code for `description` in BCP-47 format. */
|
|
841
|
+
languageCode?: string;
|
|
842
|
+
}
|
|
843
|
+
interface GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation {
|
|
844
|
+
/** All video frames where explicit content was detected. */
|
|
845
|
+
frames?: GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame[];
|
|
846
|
+
/** Feature version. */
|
|
847
|
+
version?: string;
|
|
848
|
+
}
|
|
849
|
+
interface GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame {
|
|
850
|
+
/** Likelihood of the pornography content.. */
|
|
851
|
+
pornographyLikelihood?: string;
|
|
852
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
853
|
+
timeOffset?: string;
|
|
854
|
+
}
|
|
855
|
+
interface GoogleCloudVideointelligenceV1p1beta1_FaceAnnotation {
|
|
856
|
+
/** All video frames where a face was detected. */
|
|
857
|
+
frames?: GoogleCloudVideointelligenceV1p1beta1_FaceFrame[];
|
|
858
|
+
/** All video segments where a face was detected. */
|
|
859
|
+
segments?: GoogleCloudVideointelligenceV1p1beta1_FaceSegment[];
|
|
860
|
+
/** Thumbnail of a representative face view (in JPEG format). */
|
|
861
|
+
thumbnail?: string;
|
|
862
|
+
}
|
|
863
|
+
interface GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation {
|
|
864
|
+
/** The thumbnail of a person's face. */
|
|
865
|
+
thumbnail?: string;
|
|
866
|
+
/** The face tracks with attributes. */
|
|
867
|
+
tracks?: GoogleCloudVideointelligenceV1p1beta1_Track[];
|
|
868
|
+
/** Feature version. */
|
|
869
|
+
version?: string;
|
|
870
|
+
}
|
|
871
|
+
interface GoogleCloudVideointelligenceV1p1beta1_FaceFrame {
|
|
872
|
+
/** Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. */
|
|
873
|
+
normalizedBoundingBoxes?: GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox[];
|
|
874
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
875
|
+
timeOffset?: string;
|
|
876
|
+
}
|
|
877
|
+
interface GoogleCloudVideointelligenceV1p1beta1_FaceSegment {
|
|
878
|
+
/** Video segment where a face was detected. */
|
|
879
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
880
|
+
}
|
|
881
|
+
interface GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation {
|
|
882
|
+
/**
|
|
883
|
+
* Common categories for the detected entity. For example, when the label is `Terrier`, the category is likely `dog`. And in some cases there might be more than one categories e.g.,
|
|
884
|
+
* `Terrier` could also be a `pet`.
|
|
885
|
+
*/
|
|
886
|
+
categoryEntities?: GoogleCloudVideointelligenceV1p1beta1_Entity[];
|
|
887
|
+
/** Detected entity. */
|
|
888
|
+
entity?: GoogleCloudVideointelligenceV1p1beta1_Entity;
|
|
889
|
+
/** All video frames where a label was detected. */
|
|
890
|
+
frames?: GoogleCloudVideointelligenceV1p1beta1_LabelFrame[];
|
|
891
|
+
/** All video segments where a label was detected. */
|
|
892
|
+
segments?: GoogleCloudVideointelligenceV1p1beta1_LabelSegment[];
|
|
893
|
+
/** Feature version. */
|
|
894
|
+
version?: string;
|
|
895
|
+
}
|
|
896
|
+
interface GoogleCloudVideointelligenceV1p1beta1_LabelFrame {
|
|
897
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
898
|
+
confidence?: number;
|
|
899
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
900
|
+
timeOffset?: string;
|
|
901
|
+
}
|
|
902
|
+
interface GoogleCloudVideointelligenceV1p1beta1_LabelSegment {
|
|
903
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
904
|
+
confidence?: number;
|
|
905
|
+
/** Video segment where a label was detected. */
|
|
906
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
907
|
+
}
|
|
908
|
+
interface GoogleCloudVideointelligenceV1p1beta1_LogoRecognitionAnnotation {
|
|
909
|
+
/** Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. */
|
|
910
|
+
entity?: GoogleCloudVideointelligenceV1p1beta1_Entity;
|
|
911
|
+
/** All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. */
|
|
912
|
+
segments?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment[];
|
|
913
|
+
/** All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. */
|
|
914
|
+
tracks?: GoogleCloudVideointelligenceV1p1beta1_Track[];
|
|
915
|
+
}
|
|
916
|
+
interface GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox {
|
|
917
|
+
/** Bottom Y coordinate. */
|
|
918
|
+
bottom?: number;
|
|
919
|
+
/** Left X coordinate. */
|
|
920
|
+
left?: number;
|
|
921
|
+
/** Right X coordinate. */
|
|
922
|
+
right?: number;
|
|
923
|
+
/** Top Y coordinate. */
|
|
924
|
+
top?: number;
|
|
925
|
+
}
|
|
926
|
+
interface GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingPoly {
|
|
927
|
+
/** Normalized vertices of the bounding polygon. */
|
|
928
|
+
vertices?: GoogleCloudVideointelligenceV1p1beta1_NormalizedVertex[];
|
|
929
|
+
}
|
|
930
|
+
interface GoogleCloudVideointelligenceV1p1beta1_NormalizedVertex {
|
|
931
|
+
/** X coordinate. */
|
|
932
|
+
x?: number;
|
|
933
|
+
/** Y coordinate. */
|
|
934
|
+
y?: number;
|
|
935
|
+
}
|
|
936
|
+
interface GoogleCloudVideointelligenceV1p1beta1_ObjectTrackingAnnotation {
|
|
937
|
+
/** Object category's labeling confidence of this track. */
|
|
938
|
+
confidence?: number;
|
|
939
|
+
/** Entity to specify the object category that this track is labeled as. */
|
|
940
|
+
entity?: GoogleCloudVideointelligenceV1p1beta1_Entity;
|
|
941
|
+
/**
|
|
942
|
+
* 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:
|
|
943
|
+
* it can only be one ObjectTrackingFrame message in frames.
|
|
944
|
+
*/
|
|
945
|
+
frames?: GoogleCloudVideointelligenceV1p1beta1_ObjectTrackingFrame[];
|
|
946
|
+
/** Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. */
|
|
947
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
948
|
+
/**
|
|
949
|
+
* 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
|
|
950
|
+
* unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.
|
|
951
|
+
*/
|
|
952
|
+
trackId?: string;
|
|
953
|
+
/** Feature version. */
|
|
954
|
+
version?: string;
|
|
955
|
+
}
|
|
956
|
+
interface GoogleCloudVideointelligenceV1p1beta1_ObjectTrackingFrame {
|
|
957
|
+
/** The normalized bounding box location of this object track for the frame. */
|
|
958
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox;
|
|
959
|
+
/** The timestamp of the frame in microseconds. */
|
|
960
|
+
timeOffset?: string;
|
|
961
|
+
}
|
|
962
|
+
interface GoogleCloudVideointelligenceV1p1beta1_PersonDetectionAnnotation {
|
|
963
|
+
/** The detected tracks of a person. */
|
|
964
|
+
tracks?: GoogleCloudVideointelligenceV1p1beta1_Track[];
|
|
965
|
+
/** Feature version. */
|
|
966
|
+
version?: string;
|
|
967
|
+
}
|
|
968
|
+
interface GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative {
|
|
969
|
+
/**
|
|
970
|
+
* 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
|
|
971
|
+
* 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
|
|
972
|
+
* `confidence` was not set.
|
|
973
|
+
*/
|
|
974
|
+
confidence?: number;
|
|
975
|
+
/** Transcript text representing the words that the user spoke. */
|
|
976
|
+
transcript?: string;
|
|
977
|
+
/**
|
|
978
|
+
* 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
|
|
979
|
+
* the audio.
|
|
980
|
+
*/
|
|
981
|
+
words?: GoogleCloudVideointelligenceV1p1beta1_WordInfo[];
|
|
982
|
+
}
|
|
983
|
+
interface GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription {
|
|
984
|
+
/**
|
|
985
|
+
* 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)
|
|
986
|
+
* alternative being the most probable, as ranked by the recognizer.
|
|
987
|
+
*/
|
|
988
|
+
alternatives?: GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative[];
|
|
989
|
+
/**
|
|
990
|
+
* 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
|
|
991
|
+
* being spoken in the audio.
|
|
992
|
+
*/
|
|
993
|
+
languageCode?: string;
|
|
994
|
+
}
|
|
995
|
+
interface GoogleCloudVideointelligenceV1p1beta1_TextAnnotation {
|
|
996
|
+
/** All video segments where OCR detected text appears. */
|
|
997
|
+
segments?: GoogleCloudVideointelligenceV1p1beta1_TextSegment[];
|
|
998
|
+
/** The detected text. */
|
|
999
|
+
text?: string;
|
|
1000
|
+
/** Feature version. */
|
|
1001
|
+
version?: string;
|
|
1002
|
+
}
|
|
1003
|
+
interface GoogleCloudVideointelligenceV1p1beta1_TextFrame {
|
|
1004
|
+
/** Bounding polygon of the detected text for this frame. */
|
|
1005
|
+
rotatedBoundingBox?: GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingPoly;
|
|
1006
|
+
/** Timestamp of this frame. */
|
|
1007
|
+
timeOffset?: string;
|
|
1008
|
+
}
|
|
1009
|
+
interface GoogleCloudVideointelligenceV1p1beta1_TextSegment {
|
|
1010
|
+
/** Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. */
|
|
1011
|
+
confidence?: number;
|
|
1012
|
+
/** Information related to the frames where OCR detected text appears. */
|
|
1013
|
+
frames?: GoogleCloudVideointelligenceV1p1beta1_TextFrame[];
|
|
1014
|
+
/** Video segment where a text snippet was detected. */
|
|
1015
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
1016
|
+
}
|
|
1017
|
+
interface GoogleCloudVideointelligenceV1p1beta1_TimestampedObject {
|
|
1018
|
+
/** Optional. The attributes of the object in the bounding box. */
|
|
1019
|
+
attributes?: GoogleCloudVideointelligenceV1p1beta1_DetectedAttribute[];
|
|
1020
|
+
/** Optional. The detected landmarks. */
|
|
1021
|
+
landmarks?: GoogleCloudVideointelligenceV1p1beta1_DetectedLandmark[];
|
|
1022
|
+
/** Normalized Bounding box in a frame, where the object is located. */
|
|
1023
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox;
|
|
1024
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. */
|
|
1025
|
+
timeOffset?: string;
|
|
1026
|
+
}
|
|
1027
|
+
interface GoogleCloudVideointelligenceV1p1beta1_Track {
|
|
1028
|
+
/** Optional. Attributes in the track level. */
|
|
1029
|
+
attributes?: GoogleCloudVideointelligenceV1p1beta1_DetectedAttribute[];
|
|
1030
|
+
/** Optional. The confidence score of the tracked object. */
|
|
1031
|
+
confidence?: number;
|
|
1032
|
+
/** Video segment of a track. */
|
|
1033
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
1034
|
+
/** The object with timestamp and attributes per frame in the track. */
|
|
1035
|
+
timestampedObjects?: GoogleCloudVideointelligenceV1p1beta1_TimestampedObject[];
|
|
1036
|
+
}
|
|
1037
|
+
interface GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress {
|
|
1038
|
+
/** Specifies which feature is being tracked if the request contains more than one feature. */
|
|
1039
|
+
feature?: string;
|
|
1040
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
1041
|
+
inputUri?: string;
|
|
1042
|
+
/** Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. */
|
|
1043
|
+
progressPercent?: number;
|
|
1044
|
+
/** Specifies which segment is being tracked if the request contains more than one segment. */
|
|
1045
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
1046
|
+
/** Time when the request was received. */
|
|
1047
|
+
startTime?: string;
|
|
1048
|
+
/** Time of the most recent update. */
|
|
1049
|
+
updateTime?: string;
|
|
1050
|
+
}
|
|
1051
|
+
interface GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults {
|
|
1052
|
+
/** If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */
|
|
1053
|
+
error?: GoogleRpc_Status;
|
|
1054
|
+
/** Explicit content annotation. */
|
|
1055
|
+
explicitAnnotation?: GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation;
|
|
1056
|
+
/** Deprecated. Please use `face_detection_annotations` instead. */
|
|
1057
|
+
faceAnnotations?: GoogleCloudVideointelligenceV1p1beta1_FaceAnnotation[];
|
|
1058
|
+
/** Face detection annotations. */
|
|
1059
|
+
faceDetectionAnnotations?: GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation[];
|
|
1060
|
+
/** Label annotations on frame level. There is exactly one element for each unique label. */
|
|
1061
|
+
frameLabelAnnotations?: GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[];
|
|
1062
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
1063
|
+
inputUri?: string;
|
|
1064
|
+
/** Annotations for list of logos detected, tracked and recognized in video. */
|
|
1065
|
+
logoRecognitionAnnotations?: GoogleCloudVideointelligenceV1p1beta1_LogoRecognitionAnnotation[];
|
|
1066
|
+
/** Annotations for list of objects detected and tracked in video. */
|
|
1067
|
+
objectAnnotations?: GoogleCloudVideointelligenceV1p1beta1_ObjectTrackingAnnotation[];
|
|
1068
|
+
/** Person detection annotations. */
|
|
1069
|
+
personDetectionAnnotations?: GoogleCloudVideointelligenceV1p1beta1_PersonDetectionAnnotation[];
|
|
1070
|
+
/** Video segment on which the annotation is run. */
|
|
1071
|
+
segment?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment;
|
|
1072
|
+
/** Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label. */
|
|
1073
|
+
segmentLabelAnnotations?: GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[];
|
|
1074
|
+
/**
|
|
1075
|
+
* 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
|
|
1076
|
+
* `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
|
|
1077
|
+
* `LabelDetectionConfig.model` to "builtin/latest" in the request.
|
|
1078
|
+
*/
|
|
1079
|
+
segmentPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[];
|
|
1080
|
+
/** Shot annotations. Each shot is represented as a video segment. */
|
|
1081
|
+
shotAnnotations?: GoogleCloudVideointelligenceV1p1beta1_VideoSegment[];
|
|
1082
|
+
/** Topical label annotations on shot level. There is exactly one element for each unique label. */
|
|
1083
|
+
shotLabelAnnotations?: GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[];
|
|
1084
|
+
/**
|
|
1085
|
+
* 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
|
|
1086
|
+
* 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.
|
|
1087
|
+
*/
|
|
1088
|
+
shotPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation[];
|
|
1089
|
+
/** Speech transcription. */
|
|
1090
|
+
speechTranscriptions?: GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription[];
|
|
1091
|
+
/** OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. */
|
|
1092
|
+
textAnnotations?: GoogleCloudVideointelligenceV1p1beta1_TextAnnotation[];
|
|
1093
|
+
}
|
|
1094
|
+
interface GoogleCloudVideointelligenceV1p1beta1_VideoSegment {
|
|
1095
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). */
|
|
1096
|
+
endTimeOffset?: string;
|
|
1097
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). */
|
|
1098
|
+
startTimeOffset?: string;
|
|
1099
|
+
}
|
|
1100
|
+
interface GoogleCloudVideointelligenceV1p1beta1_WordInfo {
|
|
1101
|
+
/**
|
|
1102
|
+
* 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
|
|
1103
|
+
* 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
|
|
1104
|
+
* `confidence` was not set.
|
|
1105
|
+
*/
|
|
1106
|
+
confidence?: number;
|
|
1107
|
+
/**
|
|
1108
|
+
* 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
|
|
1109
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
1110
|
+
*/
|
|
1111
|
+
endTime?: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* 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
|
|
1114
|
+
* ranges from 1 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
|
|
1115
|
+
*/
|
|
1116
|
+
speakerTag?: number;
|
|
1117
|
+
/**
|
|
1118
|
+
* 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
|
|
1119
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
1120
|
+
*/
|
|
1121
|
+
startTime?: string;
|
|
1122
|
+
/** The word corresponding to this set of information. */
|
|
1123
|
+
word?: string;
|
|
1124
|
+
}
|
|
1125
|
+
interface GoogleCloudVideointelligenceV1p2beta1_AnnotateVideoProgress {
|
|
1126
|
+
/** Progress metadata for all videos specified in `AnnotateVideoRequest`. */
|
|
1127
|
+
annotationProgress?: GoogleCloudVideointelligenceV1p2beta1_VideoAnnotationProgress[];
|
|
1128
|
+
}
|
|
1129
|
+
interface GoogleCloudVideointelligenceV1p2beta1_AnnotateVideoResponse {
|
|
1130
|
+
/** Annotation results for all videos specified in `AnnotateVideoRequest`. */
|
|
1131
|
+
annotationResults?: GoogleCloudVideointelligenceV1p2beta1_VideoAnnotationResults[];
|
|
1132
|
+
}
|
|
1133
|
+
interface GoogleCloudVideointelligenceV1p2beta1_DetectedAttribute {
|
|
1134
|
+
/** Detected attribute confidence. Range [0, 1]. */
|
|
1135
|
+
confidence?: number;
|
|
1136
|
+
/** 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. */
|
|
1137
|
+
name?: string;
|
|
1138
|
+
/** Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. */
|
|
1139
|
+
value?: string;
|
|
1140
|
+
}
|
|
1141
|
+
interface GoogleCloudVideointelligenceV1p2beta1_DetectedLandmark {
|
|
1142
|
+
/** The confidence score of the detected landmark. Range [0, 1]. */
|
|
1143
|
+
confidence?: number;
|
|
1144
|
+
/** The name of this landmark, for example, left_hand, right_shoulder. */
|
|
1145
|
+
name?: string;
|
|
1146
|
+
/** The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1. */
|
|
1147
|
+
point?: GoogleCloudVideointelligenceV1p2beta1_NormalizedVertex;
|
|
1148
|
+
}
|
|
1149
|
+
interface GoogleCloudVideointelligenceV1p2beta1_Entity {
|
|
1150
|
+
/** Textual description, e.g., `Fixed-gear bicycle`. */
|
|
1151
|
+
description?: string;
|
|
1152
|
+
/** Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/). */
|
|
1153
|
+
entityId?: string;
|
|
1154
|
+
/** Language code for `description` in BCP-47 format. */
|
|
1155
|
+
languageCode?: string;
|
|
1156
|
+
}
|
|
1157
|
+
interface GoogleCloudVideointelligenceV1p2beta1_ExplicitContentAnnotation {
|
|
1158
|
+
/** All video frames where explicit content was detected. */
|
|
1159
|
+
frames?: GoogleCloudVideointelligenceV1p2beta1_ExplicitContentFrame[];
|
|
1160
|
+
/** Feature version. */
|
|
1161
|
+
version?: string;
|
|
1162
|
+
}
|
|
1163
|
+
interface GoogleCloudVideointelligenceV1p2beta1_ExplicitContentFrame {
|
|
1164
|
+
/** Likelihood of the pornography content.. */
|
|
1165
|
+
pornographyLikelihood?: string;
|
|
1166
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
1167
|
+
timeOffset?: string;
|
|
1168
|
+
}
|
|
1169
|
+
interface GoogleCloudVideointelligenceV1p2beta1_FaceAnnotation {
|
|
1170
|
+
/** All video frames where a face was detected. */
|
|
1171
|
+
frames?: GoogleCloudVideointelligenceV1p2beta1_FaceFrame[];
|
|
1172
|
+
/** All video segments where a face was detected. */
|
|
1173
|
+
segments?: GoogleCloudVideointelligenceV1p2beta1_FaceSegment[];
|
|
1174
|
+
/** Thumbnail of a representative face view (in JPEG format). */
|
|
1175
|
+
thumbnail?: string;
|
|
1176
|
+
}
|
|
1177
|
+
interface GoogleCloudVideointelligenceV1p2beta1_FaceDetectionAnnotation {
|
|
1178
|
+
/** The thumbnail of a person's face. */
|
|
1179
|
+
thumbnail?: string;
|
|
1180
|
+
/** The face tracks with attributes. */
|
|
1181
|
+
tracks?: GoogleCloudVideointelligenceV1p2beta1_Track[];
|
|
1182
|
+
/** Feature version. */
|
|
1183
|
+
version?: string;
|
|
1184
|
+
}
|
|
1185
|
+
interface GoogleCloudVideointelligenceV1p2beta1_FaceFrame {
|
|
1186
|
+
/** Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. */
|
|
1187
|
+
normalizedBoundingBoxes?: GoogleCloudVideointelligenceV1p2beta1_NormalizedBoundingBox[];
|
|
1188
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
1189
|
+
timeOffset?: string;
|
|
1190
|
+
}
|
|
1191
|
+
interface GoogleCloudVideointelligenceV1p2beta1_FaceSegment {
|
|
1192
|
+
/** Video segment where a face was detected. */
|
|
1193
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1194
|
+
}
|
|
1195
|
+
interface GoogleCloudVideointelligenceV1p2beta1_LabelAnnotation {
|
|
1196
|
+
/**
|
|
1197
|
+
* Common categories for the detected entity. For example, when the label is `Terrier`, the category is likely `dog`. And in some cases there might be more than one categories e.g.,
|
|
1198
|
+
* `Terrier` could also be a `pet`.
|
|
1199
|
+
*/
|
|
1200
|
+
categoryEntities?: GoogleCloudVideointelligenceV1p2beta1_Entity[];
|
|
1201
|
+
/** Detected entity. */
|
|
1202
|
+
entity?: GoogleCloudVideointelligenceV1p2beta1_Entity;
|
|
1203
|
+
/** All video frames where a label was detected. */
|
|
1204
|
+
frames?: GoogleCloudVideointelligenceV1p2beta1_LabelFrame[];
|
|
1205
|
+
/** All video segments where a label was detected. */
|
|
1206
|
+
segments?: GoogleCloudVideointelligenceV1p2beta1_LabelSegment[];
|
|
1207
|
+
/** Feature version. */
|
|
1208
|
+
version?: string;
|
|
1209
|
+
}
|
|
1210
|
+
interface GoogleCloudVideointelligenceV1p2beta1_LabelFrame {
|
|
1211
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
1212
|
+
confidence?: number;
|
|
1213
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
1214
|
+
timeOffset?: string;
|
|
1215
|
+
}
|
|
1216
|
+
interface GoogleCloudVideointelligenceV1p2beta1_LabelSegment {
|
|
1217
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
1218
|
+
confidence?: number;
|
|
1219
|
+
/** Video segment where a label was detected. */
|
|
1220
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1221
|
+
}
|
|
1222
|
+
interface GoogleCloudVideointelligenceV1p2beta1_LogoRecognitionAnnotation {
|
|
1223
|
+
/** Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. */
|
|
1224
|
+
entity?: GoogleCloudVideointelligenceV1p2beta1_Entity;
|
|
1225
|
+
/** All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. */
|
|
1226
|
+
segments?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment[];
|
|
1227
|
+
/** All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. */
|
|
1228
|
+
tracks?: GoogleCloudVideointelligenceV1p2beta1_Track[];
|
|
1229
|
+
}
|
|
1230
|
+
interface GoogleCloudVideointelligenceV1p2beta1_NormalizedBoundingBox {
|
|
1231
|
+
/** Bottom Y coordinate. */
|
|
1232
|
+
bottom?: number;
|
|
1233
|
+
/** Left X coordinate. */
|
|
1234
|
+
left?: number;
|
|
1235
|
+
/** Right X coordinate. */
|
|
1236
|
+
right?: number;
|
|
1237
|
+
/** Top Y coordinate. */
|
|
1238
|
+
top?: number;
|
|
1239
|
+
}
|
|
1240
|
+
interface GoogleCloudVideointelligenceV1p2beta1_NormalizedBoundingPoly {
|
|
1241
|
+
/** Normalized vertices of the bounding polygon. */
|
|
1242
|
+
vertices?: GoogleCloudVideointelligenceV1p2beta1_NormalizedVertex[];
|
|
1243
|
+
}
|
|
1244
|
+
interface GoogleCloudVideointelligenceV1p2beta1_NormalizedVertex {
|
|
1245
|
+
/** X coordinate. */
|
|
1246
|
+
x?: number;
|
|
1247
|
+
/** Y coordinate. */
|
|
1248
|
+
y?: number;
|
|
1249
|
+
}
|
|
1250
|
+
interface GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingAnnotation {
|
|
1251
|
+
/** Object category's labeling confidence of this track. */
|
|
1252
|
+
confidence?: number;
|
|
1253
|
+
/** Entity to specify the object category that this track is labeled as. */
|
|
1254
|
+
entity?: GoogleCloudVideointelligenceV1p2beta1_Entity;
|
|
1255
|
+
/**
|
|
1256
|
+
* 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:
|
|
1257
|
+
* it can only be one ObjectTrackingFrame message in frames.
|
|
1258
|
+
*/
|
|
1259
|
+
frames?: GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingFrame[];
|
|
1260
|
+
/** Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. */
|
|
1261
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1262
|
+
/**
|
|
1263
|
+
* 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
|
|
1264
|
+
* unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.
|
|
1265
|
+
*/
|
|
1266
|
+
trackId?: string;
|
|
1267
|
+
/** Feature version. */
|
|
1268
|
+
version?: string;
|
|
1269
|
+
}
|
|
1270
|
+
interface GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingFrame {
|
|
1271
|
+
/** The normalized bounding box location of this object track for the frame. */
|
|
1272
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1p2beta1_NormalizedBoundingBox;
|
|
1273
|
+
/** The timestamp of the frame in microseconds. */
|
|
1274
|
+
timeOffset?: string;
|
|
1275
|
+
}
|
|
1276
|
+
interface GoogleCloudVideointelligenceV1p2beta1_PersonDetectionAnnotation {
|
|
1277
|
+
/** The detected tracks of a person. */
|
|
1278
|
+
tracks?: GoogleCloudVideointelligenceV1p2beta1_Track[];
|
|
1279
|
+
/** Feature version. */
|
|
1280
|
+
version?: string;
|
|
1281
|
+
}
|
|
1282
|
+
interface GoogleCloudVideointelligenceV1p2beta1_SpeechRecognitionAlternative {
|
|
1283
|
+
/**
|
|
1284
|
+
* 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
|
|
1285
|
+
* 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
|
|
1286
|
+
* `confidence` was not set.
|
|
1287
|
+
*/
|
|
1288
|
+
confidence?: number;
|
|
1289
|
+
/** Transcript text representing the words that the user spoke. */
|
|
1290
|
+
transcript?: string;
|
|
1291
|
+
/**
|
|
1292
|
+
* 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
|
|
1293
|
+
* the audio.
|
|
1294
|
+
*/
|
|
1295
|
+
words?: GoogleCloudVideointelligenceV1p2beta1_WordInfo[];
|
|
1296
|
+
}
|
|
1297
|
+
interface GoogleCloudVideointelligenceV1p2beta1_SpeechTranscription {
|
|
1298
|
+
/**
|
|
1299
|
+
* 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)
|
|
1300
|
+
* alternative being the most probable, as ranked by the recognizer.
|
|
1301
|
+
*/
|
|
1302
|
+
alternatives?: GoogleCloudVideointelligenceV1p2beta1_SpeechRecognitionAlternative[];
|
|
1303
|
+
/**
|
|
1304
|
+
* 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
|
|
1305
|
+
* being spoken in the audio.
|
|
1306
|
+
*/
|
|
1307
|
+
languageCode?: string;
|
|
1308
|
+
}
|
|
1309
|
+
interface GoogleCloudVideointelligenceV1p2beta1_TextAnnotation {
|
|
1310
|
+
/** All video segments where OCR detected text appears. */
|
|
1311
|
+
segments?: GoogleCloudVideointelligenceV1p2beta1_TextSegment[];
|
|
1312
|
+
/** The detected text. */
|
|
1313
|
+
text?: string;
|
|
1314
|
+
/** Feature version. */
|
|
1315
|
+
version?: string;
|
|
1316
|
+
}
|
|
1317
|
+
interface GoogleCloudVideointelligenceV1p2beta1_TextFrame {
|
|
1318
|
+
/** Bounding polygon of the detected text for this frame. */
|
|
1319
|
+
rotatedBoundingBox?: GoogleCloudVideointelligenceV1p2beta1_NormalizedBoundingPoly;
|
|
1320
|
+
/** Timestamp of this frame. */
|
|
1321
|
+
timeOffset?: string;
|
|
1322
|
+
}
|
|
1323
|
+
interface GoogleCloudVideointelligenceV1p2beta1_TextSegment {
|
|
1324
|
+
/** Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. */
|
|
1325
|
+
confidence?: number;
|
|
1326
|
+
/** Information related to the frames where OCR detected text appears. */
|
|
1327
|
+
frames?: GoogleCloudVideointelligenceV1p2beta1_TextFrame[];
|
|
1328
|
+
/** Video segment where a text snippet was detected. */
|
|
1329
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1330
|
+
}
|
|
1331
|
+
interface GoogleCloudVideointelligenceV1p2beta1_TimestampedObject {
|
|
1332
|
+
/** Optional. The attributes of the object in the bounding box. */
|
|
1333
|
+
attributes?: GoogleCloudVideointelligenceV1p2beta1_DetectedAttribute[];
|
|
1334
|
+
/** Optional. The detected landmarks. */
|
|
1335
|
+
landmarks?: GoogleCloudVideointelligenceV1p2beta1_DetectedLandmark[];
|
|
1336
|
+
/** Normalized Bounding box in a frame, where the object is located. */
|
|
1337
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1p2beta1_NormalizedBoundingBox;
|
|
1338
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. */
|
|
1339
|
+
timeOffset?: string;
|
|
1340
|
+
}
|
|
1341
|
+
interface GoogleCloudVideointelligenceV1p2beta1_Track {
|
|
1342
|
+
/** Optional. Attributes in the track level. */
|
|
1343
|
+
attributes?: GoogleCloudVideointelligenceV1p2beta1_DetectedAttribute[];
|
|
1344
|
+
/** Optional. The confidence score of the tracked object. */
|
|
1345
|
+
confidence?: number;
|
|
1346
|
+
/** Video segment of a track. */
|
|
1347
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1348
|
+
/** The object with timestamp and attributes per frame in the track. */
|
|
1349
|
+
timestampedObjects?: GoogleCloudVideointelligenceV1p2beta1_TimestampedObject[];
|
|
1350
|
+
}
|
|
1351
|
+
interface GoogleCloudVideointelligenceV1p2beta1_VideoAnnotationProgress {
|
|
1352
|
+
/** Specifies which feature is being tracked if the request contains more than one feature. */
|
|
1353
|
+
feature?: string;
|
|
1354
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
1355
|
+
inputUri?: string;
|
|
1356
|
+
/** Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. */
|
|
1357
|
+
progressPercent?: number;
|
|
1358
|
+
/** Specifies which segment is being tracked if the request contains more than one segment. */
|
|
1359
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1360
|
+
/** Time when the request was received. */
|
|
1361
|
+
startTime?: string;
|
|
1362
|
+
/** Time of the most recent update. */
|
|
1363
|
+
updateTime?: string;
|
|
1364
|
+
}
|
|
1365
|
+
interface GoogleCloudVideointelligenceV1p2beta1_VideoAnnotationResults {
|
|
1366
|
+
/** If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */
|
|
1367
|
+
error?: GoogleRpc_Status;
|
|
1368
|
+
/** Explicit content annotation. */
|
|
1369
|
+
explicitAnnotation?: GoogleCloudVideointelligenceV1p2beta1_ExplicitContentAnnotation;
|
|
1370
|
+
/** Deprecated. Please use `face_detection_annotations` instead. */
|
|
1371
|
+
faceAnnotations?: GoogleCloudVideointelligenceV1p2beta1_FaceAnnotation[];
|
|
1372
|
+
/** Face detection annotations. */
|
|
1373
|
+
faceDetectionAnnotations?: GoogleCloudVideointelligenceV1p2beta1_FaceDetectionAnnotation[];
|
|
1374
|
+
/** Label annotations on frame level. There is exactly one element for each unique label. */
|
|
1375
|
+
frameLabelAnnotations?: GoogleCloudVideointelligenceV1p2beta1_LabelAnnotation[];
|
|
1376
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
1377
|
+
inputUri?: string;
|
|
1378
|
+
/** Annotations for list of logos detected, tracked and recognized in video. */
|
|
1379
|
+
logoRecognitionAnnotations?: GoogleCloudVideointelligenceV1p2beta1_LogoRecognitionAnnotation[];
|
|
1380
|
+
/** Annotations for list of objects detected and tracked in video. */
|
|
1381
|
+
objectAnnotations?: GoogleCloudVideointelligenceV1p2beta1_ObjectTrackingAnnotation[];
|
|
1382
|
+
/** Person detection annotations. */
|
|
1383
|
+
personDetectionAnnotations?: GoogleCloudVideointelligenceV1p2beta1_PersonDetectionAnnotation[];
|
|
1384
|
+
/** Video segment on which the annotation is run. */
|
|
1385
|
+
segment?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment;
|
|
1386
|
+
/** Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label. */
|
|
1387
|
+
segmentLabelAnnotations?: GoogleCloudVideointelligenceV1p2beta1_LabelAnnotation[];
|
|
1388
|
+
/**
|
|
1389
|
+
* 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
|
|
1390
|
+
* `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
|
|
1391
|
+
* `LabelDetectionConfig.model` to "builtin/latest" in the request.
|
|
1392
|
+
*/
|
|
1393
|
+
segmentPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1p2beta1_LabelAnnotation[];
|
|
1394
|
+
/** Shot annotations. Each shot is represented as a video segment. */
|
|
1395
|
+
shotAnnotations?: GoogleCloudVideointelligenceV1p2beta1_VideoSegment[];
|
|
1396
|
+
/** Topical label annotations on shot level. There is exactly one element for each unique label. */
|
|
1397
|
+
shotLabelAnnotations?: GoogleCloudVideointelligenceV1p2beta1_LabelAnnotation[];
|
|
1398
|
+
/**
|
|
1399
|
+
* 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
|
|
1400
|
+
* 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.
|
|
1401
|
+
*/
|
|
1402
|
+
shotPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1p2beta1_LabelAnnotation[];
|
|
1403
|
+
/** Speech transcription. */
|
|
1404
|
+
speechTranscriptions?: GoogleCloudVideointelligenceV1p2beta1_SpeechTranscription[];
|
|
1405
|
+
/** OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. */
|
|
1406
|
+
textAnnotations?: GoogleCloudVideointelligenceV1p2beta1_TextAnnotation[];
|
|
1407
|
+
}
|
|
1408
|
+
interface GoogleCloudVideointelligenceV1p2beta1_VideoSegment {
|
|
1409
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). */
|
|
1410
|
+
endTimeOffset?: string;
|
|
1411
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). */
|
|
1412
|
+
startTimeOffset?: string;
|
|
1413
|
+
}
|
|
1414
|
+
interface GoogleCloudVideointelligenceV1p2beta1_WordInfo {
|
|
1415
|
+
/**
|
|
1416
|
+
* 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
|
|
1417
|
+
* 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
|
|
1418
|
+
* `confidence` was not set.
|
|
1419
|
+
*/
|
|
1420
|
+
confidence?: number;
|
|
1421
|
+
/**
|
|
1422
|
+
* 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
|
|
1423
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
1424
|
+
*/
|
|
1425
|
+
endTime?: string;
|
|
1426
|
+
/**
|
|
1427
|
+
* 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
|
|
1428
|
+
* ranges from 1 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
|
|
1429
|
+
*/
|
|
1430
|
+
speakerTag?: number;
|
|
1431
|
+
/**
|
|
1432
|
+
* 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
|
|
1433
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
1434
|
+
*/
|
|
1435
|
+
startTime?: string;
|
|
1436
|
+
/** The word corresponding to this set of information. */
|
|
1437
|
+
word?: string;
|
|
1438
|
+
}
|
|
1439
|
+
interface GoogleCloudVideointelligenceV1p3beta1_AnnotateVideoProgress {
|
|
1440
|
+
/** Progress metadata for all videos specified in `AnnotateVideoRequest`. */
|
|
1441
|
+
annotationProgress?: GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationProgress[];
|
|
1442
|
+
}
|
|
1443
|
+
interface GoogleCloudVideointelligenceV1p3beta1_AnnotateVideoResponse {
|
|
1444
|
+
/** Annotation results for all videos specified in `AnnotateVideoRequest`. */
|
|
1445
|
+
annotationResults?: GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults[];
|
|
1446
|
+
}
|
|
1447
|
+
interface GoogleCloudVideointelligenceV1p3beta1_Celebrity {
|
|
1448
|
+
/** Textual description of additional information about the celebrity, if applicable. */
|
|
1449
|
+
description?: string;
|
|
1450
|
+
/** The celebrity name. */
|
|
1451
|
+
displayName?: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* The resource name of the celebrity. Have the format `video-intelligence/kg-mid` indicates a celebrity from preloaded gallery. kg-mid is the id in Google knowledge graph, which is
|
|
1454
|
+
* unique for the celebrity.
|
|
1455
|
+
*/
|
|
1456
|
+
name?: string;
|
|
1457
|
+
}
|
|
1458
|
+
interface GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation {
|
|
1459
|
+
/** The tracks detected from the input video, including recognized celebrities and other detected faces in the video. */
|
|
1460
|
+
celebrityTracks?: GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack[];
|
|
1461
|
+
/** Feature version. */
|
|
1462
|
+
version?: string;
|
|
1463
|
+
}
|
|
1464
|
+
interface GoogleCloudVideointelligenceV1p3beta1_CelebrityTrack {
|
|
1465
|
+
/** Top N match of the celebrities for the face in this track. */
|
|
1466
|
+
celebrities?: GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity[];
|
|
1467
|
+
/** A track of a person's face. */
|
|
1468
|
+
faceTrack?: GoogleCloudVideointelligenceV1p3beta1_Track;
|
|
1469
|
+
}
|
|
1470
|
+
interface GoogleCloudVideointelligenceV1p3beta1_DetectedAttribute {
|
|
1471
|
+
/** Detected attribute confidence. Range [0, 1]. */
|
|
1472
|
+
confidence?: number;
|
|
1473
|
+
/** 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. */
|
|
1474
|
+
name?: string;
|
|
1475
|
+
/** Text value of the detection result. For example, the value for "HairColor" can be "black", "blonde", etc. */
|
|
1476
|
+
value?: string;
|
|
1477
|
+
}
|
|
1478
|
+
interface GoogleCloudVideointelligenceV1p3beta1_DetectedLandmark {
|
|
1479
|
+
/** The confidence score of the detected landmark. Range [0, 1]. */
|
|
1480
|
+
confidence?: number;
|
|
1481
|
+
/** The name of this landmark, for example, left_hand, right_shoulder. */
|
|
1482
|
+
name?: string;
|
|
1483
|
+
/** The 2D point of the detected landmark using the normalized image coordindate system. The normalized coordinates have the range from 0 to 1. */
|
|
1484
|
+
point?: GoogleCloudVideointelligenceV1p3beta1_NormalizedVertex;
|
|
1485
|
+
}
|
|
1486
|
+
interface GoogleCloudVideointelligenceV1p3beta1_Entity {
|
|
1487
|
+
/** Textual description, e.g., `Fixed-gear bicycle`. */
|
|
1488
|
+
description?: string;
|
|
1489
|
+
/** Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/). */
|
|
1490
|
+
entityId?: string;
|
|
1491
|
+
/** Language code for `description` in BCP-47 format. */
|
|
1492
|
+
languageCode?: string;
|
|
1493
|
+
}
|
|
1494
|
+
interface GoogleCloudVideointelligenceV1p3beta1_ExplicitContentAnnotation {
|
|
1495
|
+
/** All video frames where explicit content was detected. */
|
|
1496
|
+
frames?: GoogleCloudVideointelligenceV1p3beta1_ExplicitContentFrame[];
|
|
1497
|
+
/** Feature version. */
|
|
1498
|
+
version?: string;
|
|
1499
|
+
}
|
|
1500
|
+
interface GoogleCloudVideointelligenceV1p3beta1_ExplicitContentFrame {
|
|
1501
|
+
/** Likelihood of the pornography content.. */
|
|
1502
|
+
pornographyLikelihood?: string;
|
|
1503
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
1504
|
+
timeOffset?: string;
|
|
1505
|
+
}
|
|
1506
|
+
interface GoogleCloudVideointelligenceV1p3beta1_FaceAnnotation {
|
|
1507
|
+
/** All video frames where a face was detected. */
|
|
1508
|
+
frames?: GoogleCloudVideointelligenceV1p3beta1_FaceFrame[];
|
|
1509
|
+
/** All video segments where a face was detected. */
|
|
1510
|
+
segments?: GoogleCloudVideointelligenceV1p3beta1_FaceSegment[];
|
|
1511
|
+
/** Thumbnail of a representative face view (in JPEG format). */
|
|
1512
|
+
thumbnail?: string;
|
|
1513
|
+
}
|
|
1514
|
+
interface GoogleCloudVideointelligenceV1p3beta1_FaceDetectionAnnotation {
|
|
1515
|
+
/** The thumbnail of a person's face. */
|
|
1516
|
+
thumbnail?: string;
|
|
1517
|
+
/** The face tracks with attributes. */
|
|
1518
|
+
tracks?: GoogleCloudVideointelligenceV1p3beta1_Track[];
|
|
1519
|
+
/** Feature version. */
|
|
1520
|
+
version?: string;
|
|
1521
|
+
}
|
|
1522
|
+
interface GoogleCloudVideointelligenceV1p3beta1_FaceFrame {
|
|
1523
|
+
/** Normalized Bounding boxes in a frame. There can be more than one boxes if the same face is detected in multiple locations within the current frame. */
|
|
1524
|
+
normalizedBoundingBoxes?: GoogleCloudVideointelligenceV1p3beta1_NormalizedBoundingBox[];
|
|
1525
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
1526
|
+
timeOffset?: string;
|
|
1527
|
+
}
|
|
1528
|
+
interface GoogleCloudVideointelligenceV1p3beta1_FaceSegment {
|
|
1529
|
+
/** Video segment where a face was detected. */
|
|
1530
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1531
|
+
}
|
|
1532
|
+
interface GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation {
|
|
1533
|
+
/**
|
|
1534
|
+
* Common categories for the detected entity. For example, when the label is `Terrier`, the category is likely `dog`. And in some cases there might be more than one categories e.g.,
|
|
1535
|
+
* `Terrier` could also be a `pet`.
|
|
1536
|
+
*/
|
|
1537
|
+
categoryEntities?: GoogleCloudVideointelligenceV1p3beta1_Entity[];
|
|
1538
|
+
/** Detected entity. */
|
|
1539
|
+
entity?: GoogleCloudVideointelligenceV1p3beta1_Entity;
|
|
1540
|
+
/** All video frames where a label was detected. */
|
|
1541
|
+
frames?: GoogleCloudVideointelligenceV1p3beta1_LabelFrame[];
|
|
1542
|
+
/** All video segments where a label was detected. */
|
|
1543
|
+
segments?: GoogleCloudVideointelligenceV1p3beta1_LabelSegment[];
|
|
1544
|
+
/** Feature version. */
|
|
1545
|
+
version?: string;
|
|
1546
|
+
}
|
|
1547
|
+
interface GoogleCloudVideointelligenceV1p3beta1_LabelFrame {
|
|
1548
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
1549
|
+
confidence?: number;
|
|
1550
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this location. */
|
|
1551
|
+
timeOffset?: string;
|
|
1552
|
+
}
|
|
1553
|
+
interface GoogleCloudVideointelligenceV1p3beta1_LabelSegment {
|
|
1554
|
+
/** Confidence that the label is accurate. Range: [0, 1]. */
|
|
1555
|
+
confidence?: number;
|
|
1556
|
+
/** Video segment where a label was detected. */
|
|
1557
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1558
|
+
}
|
|
1559
|
+
interface GoogleCloudVideointelligenceV1p3beta1_LogoRecognitionAnnotation {
|
|
1560
|
+
/** Entity category information to specify the logo class that all the logo tracks within this LogoRecognitionAnnotation are recognized as. */
|
|
1561
|
+
entity?: GoogleCloudVideointelligenceV1p3beta1_Entity;
|
|
1562
|
+
/** All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment. */
|
|
1563
|
+
segments?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment[];
|
|
1564
|
+
/** All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames. */
|
|
1565
|
+
tracks?: GoogleCloudVideointelligenceV1p3beta1_Track[];
|
|
1566
|
+
}
|
|
1567
|
+
interface GoogleCloudVideointelligenceV1p3beta1_NormalizedBoundingBox {
|
|
1568
|
+
/** Bottom Y coordinate. */
|
|
1569
|
+
bottom?: number;
|
|
1570
|
+
/** Left X coordinate. */
|
|
1571
|
+
left?: number;
|
|
1572
|
+
/** Right X coordinate. */
|
|
1573
|
+
right?: number;
|
|
1574
|
+
/** Top Y coordinate. */
|
|
1575
|
+
top?: number;
|
|
1576
|
+
}
|
|
1577
|
+
interface GoogleCloudVideointelligenceV1p3beta1_NormalizedBoundingPoly {
|
|
1578
|
+
/** Normalized vertices of the bounding polygon. */
|
|
1579
|
+
vertices?: GoogleCloudVideointelligenceV1p3beta1_NormalizedVertex[];
|
|
1580
|
+
}
|
|
1581
|
+
interface GoogleCloudVideointelligenceV1p3beta1_NormalizedVertex {
|
|
1582
|
+
/** X coordinate. */
|
|
1583
|
+
x?: number;
|
|
1584
|
+
/** Y coordinate. */
|
|
1585
|
+
y?: number;
|
|
1586
|
+
}
|
|
1587
|
+
interface GoogleCloudVideointelligenceV1p3beta1_ObjectTrackingAnnotation {
|
|
1588
|
+
/** Object category's labeling confidence of this track. */
|
|
1589
|
+
confidence?: number;
|
|
1590
|
+
/** Entity to specify the object category that this track is labeled as. */
|
|
1591
|
+
entity?: GoogleCloudVideointelligenceV1p3beta1_Entity;
|
|
1592
|
+
/**
|
|
1593
|
+
* 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:
|
|
1594
|
+
* it can only be one ObjectTrackingFrame message in frames.
|
|
1595
|
+
*/
|
|
1596
|
+
frames?: GoogleCloudVideointelligenceV1p3beta1_ObjectTrackingFrame[];
|
|
1597
|
+
/** Non-streaming batch mode ONLY. Each object track corresponds to one video segment where it appears. */
|
|
1598
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1599
|
+
/**
|
|
1600
|
+
* 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
|
|
1601
|
+
* unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time.
|
|
1602
|
+
*/
|
|
1603
|
+
trackId?: string;
|
|
1604
|
+
/** Feature version. */
|
|
1605
|
+
version?: string;
|
|
1606
|
+
}
|
|
1607
|
+
interface GoogleCloudVideointelligenceV1p3beta1_ObjectTrackingFrame {
|
|
1608
|
+
/** The normalized bounding box location of this object track for the frame. */
|
|
1609
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1p3beta1_NormalizedBoundingBox;
|
|
1610
|
+
/** The timestamp of the frame in microseconds. */
|
|
1611
|
+
timeOffset?: string;
|
|
1612
|
+
}
|
|
1613
|
+
interface GoogleCloudVideointelligenceV1p3beta1_PersonDetectionAnnotation {
|
|
1614
|
+
/** The detected tracks of a person. */
|
|
1615
|
+
tracks?: GoogleCloudVideointelligenceV1p3beta1_Track[];
|
|
1616
|
+
/** Feature version. */
|
|
1617
|
+
version?: string;
|
|
1618
|
+
}
|
|
1619
|
+
interface GoogleCloudVideointelligenceV1p3beta1_RecognizedCelebrity {
|
|
1620
|
+
/** The recognized celebrity. */
|
|
1621
|
+
celebrity?: GoogleCloudVideointelligenceV1p3beta1_Celebrity;
|
|
1622
|
+
/** Recognition confidence. Range [0, 1]. */
|
|
1623
|
+
confidence?: number;
|
|
1624
|
+
}
|
|
1625
|
+
interface GoogleCloudVideointelligenceV1p3beta1_SpeechRecognitionAlternative {
|
|
1626
|
+
/**
|
|
1627
|
+
* 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
|
|
1628
|
+
* 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
|
|
1629
|
+
* `confidence` was not set.
|
|
1630
|
+
*/
|
|
1631
|
+
confidence?: number;
|
|
1632
|
+
/** Transcript text representing the words that the user spoke. */
|
|
1633
|
+
transcript?: string;
|
|
1634
|
+
/**
|
|
1635
|
+
* 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
|
|
1636
|
+
* the audio.
|
|
1637
|
+
*/
|
|
1638
|
+
words?: GoogleCloudVideointelligenceV1p3beta1_WordInfo[];
|
|
1639
|
+
}
|
|
1640
|
+
interface GoogleCloudVideointelligenceV1p3beta1_SpeechTranscription {
|
|
1641
|
+
/**
|
|
1642
|
+
* 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)
|
|
1643
|
+
* alternative being the most probable, as ranked by the recognizer.
|
|
1644
|
+
*/
|
|
1645
|
+
alternatives?: GoogleCloudVideointelligenceV1p3beta1_SpeechRecognitionAlternative[];
|
|
1646
|
+
/**
|
|
1647
|
+
* 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
|
|
1648
|
+
* being spoken in the audio.
|
|
1649
|
+
*/
|
|
1650
|
+
languageCode?: string;
|
|
1651
|
+
}
|
|
1652
|
+
interface GoogleCloudVideointelligenceV1p3beta1_StreamingAnnotateVideoResponse {
|
|
1653
|
+
/** Streaming annotation results. */
|
|
1654
|
+
annotationResults?: GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults;
|
|
1655
|
+
/**
|
|
1656
|
+
* Google Cloud Storage URI that stores annotation results of one streaming session in JSON format. It is the annotation_result_storage_directory from the request followed by
|
|
1657
|
+
* '/cloud_project_number-session_id'.
|
|
1658
|
+
*/
|
|
1659
|
+
annotationResultsUri?: string;
|
|
1660
|
+
/** If set, returns a google.rpc.Status message that specifies the error for the operation. */
|
|
1661
|
+
error?: GoogleRpc_Status;
|
|
1662
|
+
}
|
|
1663
|
+
interface GoogleCloudVideointelligenceV1p3beta1_StreamingVideoAnnotationResults {
|
|
1664
|
+
/** Explicit content annotation results. */
|
|
1665
|
+
explicitAnnotation?: GoogleCloudVideointelligenceV1p3beta1_ExplicitContentAnnotation;
|
|
1666
|
+
/** Timestamp of the processed frame in microseconds. */
|
|
1667
|
+
frameTimestamp?: string;
|
|
1668
|
+
/** Label annotation results. */
|
|
1669
|
+
labelAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation[];
|
|
1670
|
+
/** Object tracking results. */
|
|
1671
|
+
objectAnnotations?: GoogleCloudVideointelligenceV1p3beta1_ObjectTrackingAnnotation[];
|
|
1672
|
+
/** Shot annotation results. Each shot is represented as a video segment. */
|
|
1673
|
+
shotAnnotations?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment[];
|
|
1674
|
+
}
|
|
1675
|
+
interface GoogleCloudVideointelligenceV1p3beta1_TextAnnotation {
|
|
1676
|
+
/** All video segments where OCR detected text appears. */
|
|
1677
|
+
segments?: GoogleCloudVideointelligenceV1p3beta1_TextSegment[];
|
|
1678
|
+
/** The detected text. */
|
|
1679
|
+
text?: string;
|
|
1680
|
+
/** Feature version. */
|
|
1681
|
+
version?: string;
|
|
1682
|
+
}
|
|
1683
|
+
interface GoogleCloudVideointelligenceV1p3beta1_TextFrame {
|
|
1684
|
+
/** Bounding polygon of the detected text for this frame. */
|
|
1685
|
+
rotatedBoundingBox?: GoogleCloudVideointelligenceV1p3beta1_NormalizedBoundingPoly;
|
|
1686
|
+
/** Timestamp of this frame. */
|
|
1687
|
+
timeOffset?: string;
|
|
1688
|
+
}
|
|
1689
|
+
interface GoogleCloudVideointelligenceV1p3beta1_TextSegment {
|
|
1690
|
+
/** Confidence for the track of detected text. It is calculated as the highest over all frames where OCR detected text appears. */
|
|
1691
|
+
confidence?: number;
|
|
1692
|
+
/** Information related to the frames where OCR detected text appears. */
|
|
1693
|
+
frames?: GoogleCloudVideointelligenceV1p3beta1_TextFrame[];
|
|
1694
|
+
/** Video segment where a text snippet was detected. */
|
|
1695
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1696
|
+
}
|
|
1697
|
+
interface GoogleCloudVideointelligenceV1p3beta1_TimestampedObject {
|
|
1698
|
+
/** Optional. The attributes of the object in the bounding box. */
|
|
1699
|
+
attributes?: GoogleCloudVideointelligenceV1p3beta1_DetectedAttribute[];
|
|
1700
|
+
/** Optional. The detected landmarks. */
|
|
1701
|
+
landmarks?: GoogleCloudVideointelligenceV1p3beta1_DetectedLandmark[];
|
|
1702
|
+
/** Normalized Bounding box in a frame, where the object is located. */
|
|
1703
|
+
normalizedBoundingBox?: GoogleCloudVideointelligenceV1p3beta1_NormalizedBoundingBox;
|
|
1704
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the video frame for this object. */
|
|
1705
|
+
timeOffset?: string;
|
|
1706
|
+
}
|
|
1707
|
+
interface GoogleCloudVideointelligenceV1p3beta1_Track {
|
|
1708
|
+
/** Optional. Attributes in the track level. */
|
|
1709
|
+
attributes?: GoogleCloudVideointelligenceV1p3beta1_DetectedAttribute[];
|
|
1710
|
+
/** Optional. The confidence score of the tracked object. */
|
|
1711
|
+
confidence?: number;
|
|
1712
|
+
/** Video segment of a track. */
|
|
1713
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1714
|
+
/** The object with timestamp and attributes per frame in the track. */
|
|
1715
|
+
timestampedObjects?: GoogleCloudVideointelligenceV1p3beta1_TimestampedObject[];
|
|
1716
|
+
}
|
|
1717
|
+
interface GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationProgress {
|
|
1718
|
+
/** Specifies which feature is being tracked if the request contains more than one feature. */
|
|
1719
|
+
feature?: string;
|
|
1720
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
1721
|
+
inputUri?: string;
|
|
1722
|
+
/** Approximate percentage processed thus far. Guaranteed to be 100 when fully processed. */
|
|
1723
|
+
progressPercent?: number;
|
|
1724
|
+
/** Specifies which segment is being tracked if the request contains more than one segment. */
|
|
1725
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1726
|
+
/** Time when the request was received. */
|
|
1727
|
+
startTime?: string;
|
|
1728
|
+
/** Time of the most recent update. */
|
|
1729
|
+
updateTime?: string;
|
|
1730
|
+
}
|
|
1731
|
+
interface GoogleCloudVideointelligenceV1p3beta1_VideoAnnotationResults {
|
|
1732
|
+
/** Celebrity recognition annotations. */
|
|
1733
|
+
celebrityRecognitionAnnotations?: GoogleCloudVideointelligenceV1p3beta1_CelebrityRecognitionAnnotation;
|
|
1734
|
+
/** If set, indicates an error. Note that for a single `AnnotateVideoRequest` some videos may succeed and some may fail. */
|
|
1735
|
+
error?: GoogleRpc_Status;
|
|
1736
|
+
/** Explicit content annotation. */
|
|
1737
|
+
explicitAnnotation?: GoogleCloudVideointelligenceV1p3beta1_ExplicitContentAnnotation;
|
|
1738
|
+
/** Deprecated. Please use `face_detection_annotations` instead. */
|
|
1739
|
+
faceAnnotations?: GoogleCloudVideointelligenceV1p3beta1_FaceAnnotation[];
|
|
1740
|
+
/** Face detection annotations. */
|
|
1741
|
+
faceDetectionAnnotations?: GoogleCloudVideointelligenceV1p3beta1_FaceDetectionAnnotation[];
|
|
1742
|
+
/** Label annotations on frame level. There is exactly one element for each unique label. */
|
|
1743
|
+
frameLabelAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation[];
|
|
1744
|
+
/** Video file location in [Cloud Storage](https://cloud.google.com/storage/). */
|
|
1745
|
+
inputUri?: string;
|
|
1746
|
+
/** Annotations for list of logos detected, tracked and recognized in video. */
|
|
1747
|
+
logoRecognitionAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LogoRecognitionAnnotation[];
|
|
1748
|
+
/** Annotations for list of objects detected and tracked in video. */
|
|
1749
|
+
objectAnnotations?: GoogleCloudVideointelligenceV1p3beta1_ObjectTrackingAnnotation[];
|
|
1750
|
+
/** Person detection annotations. */
|
|
1751
|
+
personDetectionAnnotations?: GoogleCloudVideointelligenceV1p3beta1_PersonDetectionAnnotation[];
|
|
1752
|
+
/** Video segment on which the annotation is run. */
|
|
1753
|
+
segment?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment;
|
|
1754
|
+
/** Topical label annotations on video level or user-specified segment level. There is exactly one element for each unique label. */
|
|
1755
|
+
segmentLabelAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation[];
|
|
1756
|
+
/**
|
|
1757
|
+
* 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
|
|
1758
|
+
* `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
|
|
1759
|
+
* `LabelDetectionConfig.model` to "builtin/latest" in the request.
|
|
1760
|
+
*/
|
|
1761
|
+
segmentPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation[];
|
|
1762
|
+
/** Shot annotations. Each shot is represented as a video segment. */
|
|
1763
|
+
shotAnnotations?: GoogleCloudVideointelligenceV1p3beta1_VideoSegment[];
|
|
1764
|
+
/** Topical label annotations on shot level. There is exactly one element for each unique label. */
|
|
1765
|
+
shotLabelAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation[];
|
|
1766
|
+
/**
|
|
1767
|
+
* 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
|
|
1768
|
+
* 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.
|
|
1769
|
+
*/
|
|
1770
|
+
shotPresenceLabelAnnotations?: GoogleCloudVideointelligenceV1p3beta1_LabelAnnotation[];
|
|
1771
|
+
/** Speech transcription. */
|
|
1772
|
+
speechTranscriptions?: GoogleCloudVideointelligenceV1p3beta1_SpeechTranscription[];
|
|
1773
|
+
/** OCR text detection and tracking. Annotations for list of detected text snippets. Each will have list of frame information associated with it. */
|
|
1774
|
+
textAnnotations?: GoogleCloudVideointelligenceV1p3beta1_TextAnnotation[];
|
|
1775
|
+
}
|
|
1776
|
+
interface GoogleCloudVideointelligenceV1p3beta1_VideoSegment {
|
|
1777
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). */
|
|
1778
|
+
endTimeOffset?: string;
|
|
1779
|
+
/** Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). */
|
|
1780
|
+
startTimeOffset?: string;
|
|
1781
|
+
}
|
|
1782
|
+
interface GoogleCloudVideointelligenceV1p3beta1_WordInfo {
|
|
1783
|
+
/**
|
|
1784
|
+
* 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
|
|
1785
|
+
* 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
|
|
1786
|
+
* `confidence` was not set.
|
|
1787
|
+
*/
|
|
1788
|
+
confidence?: number;
|
|
1789
|
+
/**
|
|
1790
|
+
* 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
|
|
1791
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
1792
|
+
*/
|
|
1793
|
+
endTime?: string;
|
|
1794
|
+
/**
|
|
1795
|
+
* 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
|
|
1796
|
+
* ranges from 1 up to diarization_speaker_count, and is only set if speaker diarization is enabled.
|
|
1797
|
+
*/
|
|
1798
|
+
speakerTag?: number;
|
|
1799
|
+
/**
|
|
1800
|
+
* 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
|
|
1801
|
+
* hypothesis. This is an experimental feature and the accuracy of the time offset can vary.
|
|
1802
|
+
*/
|
|
1803
|
+
startTime?: string;
|
|
1804
|
+
/** The word corresponding to this set of information. */
|
|
1805
|
+
word?: string;
|
|
1806
|
+
}
|
|
1807
|
+
interface GoogleLongrunning_Operation {
|
|
1808
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
1809
|
+
done?: boolean;
|
|
1810
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
1811
|
+
error?: GoogleRpc_Status;
|
|
1812
|
+
/**
|
|
1813
|
+
* Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
|
|
1814
|
+
* metadata. Any method that returns a long-running operation should document the metadata type, if any.
|
|
1815
|
+
*/
|
|
1816
|
+
metadata?: { [P in string]: any };
|
|
1817
|
+
/**
|
|
1818
|
+
* The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
|
|
1819
|
+
* with `operations/{unique_id}`.
|
|
1820
|
+
*/
|
|
1821
|
+
name?: string;
|
|
1822
|
+
/**
|
|
1823
|
+
* The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
|
|
1824
|
+
* original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
|
|
1825
|
+
* original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
1826
|
+
*/
|
|
1827
|
+
response?: { [P in string]: any };
|
|
1828
|
+
}
|
|
1829
|
+
interface GoogleRpc_Status {
|
|
1830
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1831
|
+
code?: number;
|
|
1832
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1833
|
+
details?: Array<{ [P in string]: any }>;
|
|
1834
|
+
/**
|
|
1835
|
+
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
1836
|
+
* client.
|
|
1837
|
+
*/
|
|
1838
|
+
message?: string;
|
|
1839
|
+
}
|
|
1840
|
+
interface VideosResource {
|
|
1841
|
+
/**
|
|
1842
|
+
* Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains
|
|
1843
|
+
* `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).
|
|
1844
|
+
*/
|
|
1845
|
+
annotate(request: {
|
|
1846
|
+
/** V1 error format. */
|
|
1847
|
+
"$.xgafv"?: string;
|
|
1848
|
+
/** OAuth access token. */
|
|
1849
|
+
access_token?: string;
|
|
1850
|
+
/** Data format for response. */
|
|
1851
|
+
alt?: string;
|
|
1852
|
+
/** JSONP */
|
|
1853
|
+
callback?: string;
|
|
1854
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1855
|
+
fields?: string;
|
|
1856
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1857
|
+
key?: string;
|
|
1858
|
+
/** OAuth 2.0 token for the current user. */
|
|
1859
|
+
oauth_token?: string;
|
|
1860
|
+
/** Returns response with indentations and line breaks. */
|
|
1861
|
+
prettyPrint?: boolean;
|
|
1862
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1863
|
+
quotaUser?: string;
|
|
1864
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1865
|
+
upload_protocol?: string;
|
|
1866
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1867
|
+
uploadType?: string;
|
|
1868
|
+
/** Request body */
|
|
1869
|
+
resource: GoogleCloudVideointelligenceV1beta2_AnnotateVideoRequest;
|
|
1870
|
+
}): Request<GoogleLongrunning_Operation>;
|
|
1871
|
+
annotate(request: {
|
|
1872
|
+
/** V1 error format. */
|
|
1873
|
+
"$.xgafv"?: string;
|
|
1874
|
+
/** OAuth access token. */
|
|
1875
|
+
access_token?: string;
|
|
1876
|
+
/** Data format for response. */
|
|
1877
|
+
alt?: string;
|
|
1878
|
+
/** JSONP */
|
|
1879
|
+
callback?: string;
|
|
1880
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1881
|
+
fields?: string;
|
|
1882
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1883
|
+
key?: string;
|
|
1884
|
+
/** OAuth 2.0 token for the current user. */
|
|
1885
|
+
oauth_token?: string;
|
|
1886
|
+
/** Returns response with indentations and line breaks. */
|
|
1887
|
+
prettyPrint?: boolean;
|
|
1888
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1889
|
+
quotaUser?: string;
|
|
1890
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1891
|
+
upload_protocol?: string;
|
|
1892
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1893
|
+
uploadType?: string;
|
|
1894
|
+
},
|
|
1895
|
+
body: GoogleCloudVideointelligenceV1beta2_AnnotateVideoRequest): Request<GoogleLongrunning_Operation>;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
const videos: VideosResource;
|
|
1899
|
+
}
|
|
1900
|
+
}
|