Skip to content

Commit

Permalink
replace demomaker with cloud-samples-data/video for video intelligenc…
Browse files Browse the repository at this point in the history
…… [(#2162)](#2162)

* replace demomaker with cloud-samples-data/video for video intelligence samples

* flake
  • Loading branch information
dizcology authored and leahecole committed Sep 15, 2023
1 parent 9e59c00 commit db08d6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions videointelligence/samples/analyze/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ To run this sample:
python analyze.py labels gs://cloud-ml-sandbox/video/chicago.mp4
python analyze.py labels_file resources/cat.mp4
python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4
python analyze.py explicit_content gs://demomaker/gbikes_dinosaur.mp4
python analyze.py shots gs://cloud-samples-data/video/gbikes_dinosaur.mp4
python analyze.py explicit_content gs://cloud-samples-data/video/gbikes_dinosaur.mp4
positional arguments:
{labels,labels_file,explicit_content,shots}
Expand Down Expand Up @@ -157,4 +157,4 @@ to `browse the source`_ and `report issues`_.
https://github.com/GoogleCloudPlatform/google-cloud-python/issues


.. _Google Cloud SDK: https://cloud.google.com/sdk/
.. _Google Cloud SDK: https://cloud.google.com/sdk/
2 changes: 1 addition & 1 deletion videointelligence/samples/analyze/beta_snippets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_track_objects():

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

text_exists = False
Expand Down
2 changes: 1 addition & 1 deletion videointelligence/samples/analyze/resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Copy from Google Cloud Storage to this folder for testing video analysis
of local files. For `cat.mp4` used in the usage example, run the following
`gcloud` command.

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

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

0 comments on commit db08d6f

Please sign in to comment.