Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff8f235

Browse filesBrowse files
authored
replace demomaker with cloud-samples-data/video for video intelligenc… (GoogleCloudPlatform#2162)
* replace demomaker with cloud-samples-data/video for video intelligence samples * flake
1 parent abadf8a commit ff8f235
Copy full SHA for ff8f235

File tree

Expand file treeCollapse file tree

8 files changed

+12
-11
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+12
-11
lines changed

‎video/cloud-client/analyze/README.rst

Copy file name to clipboardExpand all lines: video/cloud-client/analyze/README.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ To run this sample:
8585
8686
python analyze.py labels gs://cloud-ml-sandbox/video/chicago.mp4
8787
python analyze.py labels_file resources/cat.mp4
88-
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
89-
python analyze.py explicit_content gs://demomaker/gbikes_dinosaur.mp4
88+
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
9090
9191
positional arguments:
9292
{labels,labels_file,explicit_content,shots}
@@ -157,4 +157,4 @@ to `browse the source`_ and `report issues`_.
157157
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
158158

159159

160-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
160+
.. _Google Cloud SDK: https://cloud.google.com/sdk/

‎video/cloud-client/analyze/beta_snippets_test.py

Copy file name to clipboardExpand all lines: video/cloud-client/analyze/beta_snippets_test.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_track_objects():
150150

151151
@pytest.mark.slow
152152
def test_track_objects_gcs():
153-
in_file = 'gs://demomaker/cat.mp4'
153+
in_file = 'gs://cloud-samples-data/video/cat.mp4'
154154
object_annotations = beta_snippets.track_objects_gcs(in_file)
155155

156156
text_exists = False

‎video/cloud-client/analyze/resources/README.md

Copy file name to clipboardExpand all lines: video/cloud-client/analyze/resources/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Copy from Google Cloud Storage to this folder for testing video analysis
99
of local files. For `cat.mp4` used in the usage example, run the following
1010
`gcloud` command.
1111

12-
gsutil cp gs://demomaker/cat.mp4 .
12+
gsutil cp gs://cloud-samples-data/video/cat.mp4 .
1313

1414
Now, when you run the following command, the video used for label detection
1515
will be passed from here:

‎video/cloud-client/labels/labels_test.py

Copy file name to clipboardExpand all lines: video/cloud-client/labels/labels_test.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
@pytest.mark.slow
2323
def test_feline_video_labels(capsys):
24-
labels.analyze_labels('gs://demomaker/cat.mp4')
24+
labels.analyze_labels('gs://cloud-samples-data/video/cat.mp4')
2525
out, _ = capsys.readouterr()
2626
assert 'Video label description: cat' in out

‎video/cloud-client/quickstart/quickstart.py

Copy file name to clipboardExpand all lines: video/cloud-client/quickstart/quickstart.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def run_quickstart():
3030
video_client = videointelligence.VideoIntelligenceServiceClient()
3131
features = [videointelligence.enums.Feature.LABEL_DETECTION]
3232
operation = video_client.annotate_video(
33-
'gs://demomaker/cat.mp4', features=features)
33+
'gs://cloud-samples-data/video/cat.mp4', features=features)
3434
print('\nProcessing video for label annotations:')
3535

3636
result = operation.result(timeout=120)

‎video/cloud-client/shotchange/README.rst

Copy file name to clipboardExpand all lines: video/cloud-client/shotchange/README.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ To run this sample:
8686
8787
Example Usage:
8888
89-
python shotchange.py gs://demomaker/gbikes_dinosaur.mp4
89+
python shotchange.py gs://cloud-samples-data/video/gbikes_dinosaur.mp4
9090
9191
positional arguments:
9292
path GCS path for shot change detection.
@@ -113,4 +113,4 @@ to `browse the source`_ and `report issues`_.
113113
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
114114

115115

116-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
116+
.. _Google Cloud SDK: https://cloud.google.com/sdk/

‎video/cloud-client/shotchange/shotchange.py

Copy file name to clipboardExpand all lines: video/cloud-client/shotchange/shotchange.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
Example Usage:
2424
25-
python shotchange.py gs://demomaker/gbikes_dinosaur.mp4
25+
python shotchange.py gs://cloud-samples-data/video/gbikes_dinosaur.mp4
2626
2727
"""
2828

‎video/cloud-client/shotchange/shotchange_test.py

Copy file name to clipboardExpand all lines: video/cloud-client/shotchange/shotchange_test.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
@pytest.mark.slow
2323
def test_shots_dino(capsys):
24-
shotchange.analyze_shots('gs://demomaker/gbikes_dinosaur.mp4')
24+
shotchange.analyze_shots(
25+
'gs://cloud-samples-data/video/gbikes_dinosaur.mp4')
2526
out, _ = capsys.readouterr()
2627
assert 'Shot 1:' in out

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.