Skip to content

Commit 2fba04c

Browse files
authored
fix: changes positional to named pararameters in Video samples [(#4017)](GoogleCloudPlatform/python-docs-samples#4017)
Changes calls to `VideoClient.annotate_video()` so that GCS URIs are provided as named parameters. Example: ``` operation = video_client.annotate_video(path, features=features) ``` Becomes: ``` operation = video_client.annotate_video(input_uri=path, features=features) ```
1 parent 3c6b399 commit 2fba04c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/shotchange/shotchange.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def analyze_shots(path):
3939
# [START video_shot_tutorial_construct_request]
4040
video_client = videointelligence.VideoIntelligenceServiceClient()
4141
features = [videointelligence.enums.Feature.SHOT_CHANGE_DETECTION]
42-
operation = video_client.annotate_video(path, features=features)
42+
operation = video_client.annotate_video(input_uri=path, features=features)
4343
# [END video_shot_tutorial_construct_request]
4444
print('\nProcessing video for shot change annotations:')
4545

0 commit comments

Comments
 (0)