Skip to content
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

replace demomaker with cloud-samples-data/video for video intelligenc… #2162

Merged
merged 2 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions video/cloud-client/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 video/cloud-client/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 video/cloud-client/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
2 changes: 1 addition & 1 deletion video/cloud-client/labels/labels_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

@pytest.mark.slow
def test_feline_video_labels(capsys):
labels.analyze_labels('gs://demomaker/cat.mp4')
labels.analyze_labels('gs://cloud-samples-data/video/cat.mp4')
out, _ = capsys.readouterr()
assert 'Video label description: cat' in out
2 changes: 1 addition & 1 deletion video/cloud-client/quickstart/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def run_quickstart():
video_client = videointelligence.VideoIntelligenceServiceClient()
features = [videointelligence.enums.Feature.LABEL_DETECTION]
operation = video_client.annotate_video(
'gs://demomaker/cat.mp4', features=features)
'gs://cloud-samples-data/video/cat.mp4', features=features)
print('\nProcessing video for label annotations:')

result = operation.result(timeout=120)
Expand Down
4 changes: 2 additions & 2 deletions video/cloud-client/shotchange/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ To run this sample:

Example Usage:

python shotchange.py gs://demomaker/gbikes_dinosaur.mp4
python shotchange.py gs://cloud-samples-data/video/gbikes_dinosaur.mp4

positional arguments:
path GCS path for shot change detection.
Expand All @@ -113,4 +113,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 video/cloud-client/shotchange/shotchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

Example Usage:

python shotchange.py gs://demomaker/gbikes_dinosaur.mp4
python shotchange.py gs://cloud-samples-data/video/gbikes_dinosaur.mp4

"""

Expand Down
3 changes: 2 additions & 1 deletion video/cloud-client/shotchange/shotchange_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

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