@@ -191,9 +191,9 @@ def __init__(
191
191
# Service calls
192
192
def annotate_video (
193
193
self ,
194
- features ,
195
194
input_uri = None ,
196
195
input_content = None ,
196
+ features = None ,
197
197
video_context = None ,
198
198
output_uri = None ,
199
199
location_id = None ,
@@ -213,11 +213,11 @@ def annotate_video(
213
213
>>>
214
214
>>> client = videointelligence_v1.VideoIntelligenceServiceClient()
215
215
>>>
216
+ >>> input_uri = 'gs://cloud-samples-data/video/cat.mp4'
216
217
>>> features_element = enums.Feature.LABEL_DETECTION
217
218
>>> features = [features_element]
218
- >>> input_uri = 'gs://cloud-samples-data/video/cat.mp4'
219
219
>>>
220
- >>> response = client.annotate_video(features, input_uri=input_uri)
220
+ >>> response = client.annotate_video(input_uri=input_uri, features=features )
221
221
>>>
222
222
>>> def callback(operation_future):
223
223
... # Handle result.
@@ -229,7 +229,6 @@ def annotate_video(
229
229
>>> metadata = response.metadata()
230
230
231
231
Args:
232
- features (list[~google.cloud.videointelligence_v1.types.Feature]): Required. Requested video annotation features.
233
232
input_uri (str): Input video location. Currently, only `Google Cloud
234
233
Storage <https://cloud.google.com/storage/>`__ URIs are supported, which
235
234
must be specified in the following format: ``gs://bucket-id/object-id``
@@ -242,6 +241,7 @@ def annotate_video(
242
241
request as ``input_content``. If set, ``input_content`` should be unset.
243
242
input_content (bytes): The video data bytes. If unset, the input video(s) should be specified
244
243
via ``input_uri``. If set, ``input_uri`` should be unset.
244
+ features (list[~google.cloud.videointelligence_v1.types.Feature]): Required. Requested video annotation features.
245
245
video_context (Union[dict, ~google.cloud.videointelligence_v1.types.VideoContext]): Additional video context and/or feature-specific parameters.
246
246
247
247
If a dict is provided, it must be of the same form as the protobuf
@@ -288,9 +288,9 @@ def annotate_video(
288
288
)
289
289
290
290
request = video_intelligence_pb2 .AnnotateVideoRequest (
291
- features = features ,
292
291
input_uri = input_uri ,
293
292
input_content = input_content ,
293
+ features = features ,
294
294
video_context = video_context ,
295
295
output_uri = output_uri ,
296
296
location_id = location_id ,
0 commit comments