-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds quickstart #964
Adds quickstart #964
Conversation
samples: | ||
- name: quickstart | ||
file: quickstart.py | ||
show_help: True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typically we don't do this for quickstarts because of side effects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
python quickstart.py | ||
""" | ||
|
||
# [START videointelligence_quickstart] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imports go inside the run_quickstart
function for quickstarts: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/storage/cloud-client/quickstart.py
# first result is retrieved because a single video was processed | ||
results = operation.result().annotation_results[0] | ||
|
||
for i, label in enumerate(results.label_annotations): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use enumerate if you don't use the i
.
No description provided.