Skip to content

Commit

Permalink
fix: changes positional to named pararameters in Video samples [(#401…
Browse files Browse the repository at this point in the history
…7)](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)
```
  • Loading branch information
telpirion authored Jun 9, 2020
1 parent 3c6b399 commit 2fba04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/shotchange/shotchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def analyze_shots(path):
# [START video_shot_tutorial_construct_request]
video_client = videointelligence.VideoIntelligenceServiceClient()
features = [videointelligence.enums.Feature.SHOT_CHANGE_DETECTION]
operation = video_client.annotate_video(path, features=features)
operation = video_client.annotate_video(input_uri=path, features=features)
# [END video_shot_tutorial_construct_request]
print('\nProcessing video for shot change annotations:')

Expand Down

0 comments on commit 2fba04c

Please sign in to comment.