Skip to content

Commit 88a62b3

Browse files
committed
chore: update templates
1 parent 67c9b82 commit 88a62b3

File tree

4 files changed

+288
-10
lines changed

4 files changed

+288
-10
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/CONTRIBUTING.md

videointelligence/samples/analyze/README.rst

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.. This file is automatically generated. Do not edit this file directly.
23
34
Google Cloud Video Intelligence API Python Samples
@@ -14,10 +15,12 @@ This directory contains samples for Google Cloud Video Intelligence API. `Google
1415

1516
.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs
1617

18+
1719
Setup
1820
-------------------------------------------------------------------------------
1921

2022

23+
2124
Authentication
2225
++++++++++++++
2326

@@ -28,6 +31,9 @@ credentials for applications.
2831
.. _Authentication Getting Started Guide:
2932
https://cloud.google.com/docs/authentication/getting-started
3033

34+
35+
36+
3137
Install Dependencies
3238
++++++++++++++++++++
3339

@@ -42,7 +48,7 @@ Install Dependencies
4248
.. _Python Development Environment Setup Guide:
4349
https://cloud.google.com/python/setup
4450

45-
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
51+
#. Create a virtualenv. Samples are compatible with Python 3.6+.
4652

4753
.. code-block:: bash
4854
@@ -58,9 +64,15 @@ Install Dependencies
5864
.. _pip: https://pip.pypa.io/
5965
.. _virtualenv: https://virtualenv.pypa.io/
6066

67+
68+
69+
70+
71+
6172
Samples
6273
-------------------------------------------------------------------------------
6374

75+
6476
analyze
6577
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6678

@@ -76,30 +88,44 @@ To run this sample:
7688
7789
$ python analyze.py
7890
79-
usage: analyze.py [-h] {labels,labels_file,explicit_content,shots} ...
91+
92+
usage: analyze.py [-h]
93+
{labels,labels_file,explicit_content,shots,transcribe,text_gcs,text_file,objects_gcs,objects_file}
94+
...
8095
8196
This application demonstrates label detection,
8297
explicit content, and shot change detection using the Google Cloud API.
8398
8499
Usage Examples:
85100
86-
python analyze.py labels gs://cloud-ml-sandbox/video/chicago.mp4
101+
python analyze.py labels gs://cloud-samples-data/video/chicago.mp4
87102
python analyze.py labels_file resources/cat.mp4
88103
python analyze.py shots gs://cloud-samples-data/video/gbikes_dinosaur.mp4
89-
python analyze.py explicit_content gs://cloud-samples-data/video/gbikes_dinosaur.mp4
104+
python analyze.py explicit_content gs://cloud-samples-data/video/gbikes_dinosaur.mp4
105+
python analyze.py text_gcs gs://cloud-samples-data/video/googlework_tiny.mp4
106+
python analyze.py text_file resources/googlework_tiny.mp4
107+
python analyze.py objects_gcs gs://cloud-samples-data/video/cat.mp4
108+
python analyze.py objects_file resources/cat.mp4
90109
91110
positional arguments:
92-
{labels,labels_file,explicit_content,shots}
111+
{labels,labels_file,explicit_content,shots,transcribe,text_gcs,text_file,objects_gcs,objects_file}
93112
labels Detects labels given a GCS path.
94113
labels_file Detect labels given a file path.
95114
explicit_content Detects explicit content from the GCS path to a video.
96115
shots Detects camera shot changes.
116+
transcribe Transcribe speech from a video stored on GCS.
117+
text_gcs Detect text in a video stored on GCS.
118+
text_file Detect text in a local video.
119+
objects_gcs Object tracking in a video stored on GCS.
120+
objects_file Object tracking in a local video.
97121
98122
optional arguments:
99123
-h, --help show this help message and exit
100124
101125
102126
127+
128+
103129
beta samples
104130
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
105131

@@ -115,25 +141,46 @@ To run this sample:
115141
116142
$ python beta_snippets.py
117143
144+
118145
usage: beta_snippets.py [-h]
119-
{transcription,video-text-gcs,video-text,track-objects-gcs,track-objects}
146+
{transcription,video-text-gcs,video-text,track-objects-gcs,track-objects,streaming-labels,streaming-shot-change,streaming-objects,streaming-explicit-content,streaming-annotation-storage,streaming-automl-classification}
120147
...
121148
122149
This application demonstrates speech transcription using the
123150
Google Cloud API.
124151
125152
Usage Examples:
126-
python beta_snippets.py transcription gs://python-docs-samples-tests/video/googlework_tiny.mp4
127-
python beta_snippets.py video-text-gcs gs://python-docs-samples-tests/video/googlework_tiny.mp4
128-
python beta_snippets.py track-objects /resources/cat.mp4
153+
python beta_snippets.py transcription gs://python-docs-samples-tests/video/googlework_tiny.mp4
154+
155+
python beta_snippets.py video-text-gcs gs://python-docs-samples-tests/video/googlework_tiny.mp4
156+
157+
python beta_snippets.py track-objects resources/cat.mp4
158+
159+
python beta_snippets.py streaming-labels resources/cat.mp4
160+
161+
python beta_snippets.py streaming-shot-change resources/cat.mp4
162+
163+
python beta_snippets.py streaming-objects resources/cat.mp4
164+
165+
python beta_snippets.py streaming-explicit-content resources/cat.mp4
166+
167+
python beta_snippets.py streaming-annotation-storage resources/cat.mp4 gs://mybucket/myfolder
168+
169+
python beta_snippets.py streaming-automl-classification resources/cat.mp4 $PROJECT_ID $MODEL_ID
129170
130171
positional arguments:
131-
{transcription,video-text-gcs,video-text,track-objects-gcs,track-objects}
172+
{transcription,video-text-gcs,video-text,track-objects-gcs,track-objects,streaming-labels,streaming-shot-change,streaming-objects,streaming-explicit-content,streaming-annotation-storage,streaming-automl-classification}
132173
transcription Transcribe speech from a video stored on GCS.
133174
video-text-gcs Detect text in a video stored on GCS.
134175
video-text Detect text in a local video.
135176
track-objects-gcs Object Tracking.
136177
track-objects Object Tracking.
178+
streaming-labels
179+
streaming-shot-change
180+
streaming-objects
181+
streaming-explicit-content
182+
streaming-annotation-storage
183+
streaming-automl-classification
137184
138185
optional arguments:
139186
-h, --help show this help message and exit
@@ -142,6 +189,10 @@ To run this sample:
142189
143190
144191
192+
193+
194+
195+
145196
The client library
146197
-------------------------------------------------------------------------------
147198

@@ -157,4 +208,5 @@ to `browse the source`_ and `report issues`_.
157208
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
158209

159210

211+
160212
.. _Google Cloud SDK: https://cloud.google.com/sdk/

0 commit comments

Comments
 (0)