Skip to content

Commit 807e5b7

Browse files
michaelawyudanoscarmike
michaelawyu
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](#1254)
1 parent ca6ff75 commit 807e5b7

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

videointelligence/samples/analyze/README.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Cloud Video Intelligence API Python Samples
44
===============================================================================
55

6+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/README.rst
8+
9+
610
This directory contains samples for Google Cloud Video Intelligence API. `Google Cloud Video Intelligence API`_ allows developers to easily integrate feature detection in video.
711

812

@@ -54,6 +58,10 @@ Samples
5458
analyze
5559
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660

61+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
62+
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/analyze.py;video/cloud-client/analyze/README.rst
63+
64+
5765

5866

5967
To run this sample:
@@ -63,32 +71,33 @@ To run this sample:
6371
$ python analyze.py
6472
6573
usage: analyze.py [-h] {faces,labels,labels_file,explicit_content,shots} ...
66-
74+
6775
This application demonstrates face detection, label detection,
6876
explicit content, and shot change detection using the Google Cloud API.
69-
77+
7078
Usage Examples:
71-
79+
7280
python analyze.py faces gs://demomaker/google_gmail.mp4
7381
python analyze.py labels gs://cloud-ml-sandbox/video/chicago.mp4
7482
python analyze.py labels_file resources/cat.mp4
7583
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
7684
python analyze.py explicit_content gs://demomaker/gbikes_dinosaur.mp4
77-
85+
7886
positional arguments:
7987
{faces,labels,labels_file,explicit_content,shots}
8088
faces Detects faces given a GCS path.
8189
labels Detects labels given a GCS path.
82-
labels_file Detects labels given a file path.
90+
labels_file Detect labels given a file path.
8391
explicit_content Detects explicit content from the GCS path to a video.
8492
shots Detects camera shot changes.
85-
93+
8694
optional arguments:
8795
-h, --help show this help message and exit
8896
8997
9098
9199
100+
92101
The client library
93102
-------------------------------------------------------------------------------
94103

videointelligence/samples/analyze/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ samples:
1818
show_help: True
1919

2020
cloud_client_library: true
21+
22+
folder: video/cloud-client/analyze

videointelligence/samples/analyze/resources/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Resources folder for local files
22

3+
[![Open in Cloud Shell][shell_img]][shell_link]
4+
5+
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
6+
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/resources/README.md
7+
38
Copy from Google Cloud Storage to this folder for testing video analysis
49
of local files. For `cat.mp4` used in the usage example, run the following
510
`gcloud` command.

0 commit comments

Comments
 (0)