From 5053e65823a1136e86a5964e0edd817477b53dfb Mon Sep 17 00:00:00 2001 From: Gus Class Date: Wed, 31 May 2017 12:42:29 -0700 Subject: [PATCH] Updates examples for video --- video/cloud-client/analyze/README.rst | 10 +++++----- video/cloud-client/analyze/analyze.py | 2 +- video/cloud-client/analyze/resources/README.md | 12 ++++++++++++ video/cloud-client/faces/README.rst | 2 +- video/cloud-client/shotchange/README.rst | 2 +- 5 files changed, 20 insertions(+), 8 deletions(-) create mode 100644 video/cloud-client/analyze/resources/README.md diff --git a/video/cloud-client/analyze/README.rst b/video/cloud-client/analyze/README.rst index cb3d4954dd7..0f8f74dda28 100644 --- a/video/cloud-client/analyze/README.rst +++ b/video/cloud-client/analyze/README.rst @@ -88,11 +88,11 @@ To run this sample: Usage Examples: - python analyze.py faces gs://cloudmleap/video/next/volleyball_court.mp4 - python analyze.py labels gs://cloudmleap/video/next/fox-snatched.mp4 - python analyze.py labels_file resources/fox-snatched.mp4 - python analyze.py shots gs://cloudmleap/video/next/gbikes_dinosaur.mp4 - python analyze.py safe_search gs://cloudmleap/video/next/animals.mp4 + python analyze.py faces gs://demomaker/google_gmail.mp4 + 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 safe_search gs://demomaker/gbikes_dinosaur.mp4 positional arguments: {faces,labels,labels_file,safe_search,shots} diff --git a/video/cloud-client/analyze/analyze.py b/video/cloud-client/analyze/analyze.py index 4054807d699..285c62bcaae 100644 --- a/video/cloud-client/analyze/analyze.py +++ b/video/cloud-client/analyze/analyze.py @@ -21,7 +21,7 @@ python analyze.py faces gs://demomaker/google_gmail.mp4 python analyze.py labels gs:/cloud-ml-sandbox/video/chicago.mp4 - python analyze.py labels_file resources/fox-snatched.mp4 + python analyze.py labels_file resources/cat.mp4 python analyze.py shots gs://demomaker/gbikes_dinosaur.mp4 python analyze.py safe_search gs://demomaker/gbikes_dinosaur.mp4 diff --git a/video/cloud-client/analyze/resources/README.md b/video/cloud-client/analyze/resources/README.md new file mode 100644 index 00000000000..a88a180da90 --- /dev/null +++ b/video/cloud-client/analyze/resources/README.md @@ -0,0 +1,12 @@ +# Resources folder for local files + +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 . + +Now, when you run the following command, the video used for label detection +will be passed from here: + + python analyze.py labels_file resources/cat.mp4 diff --git a/video/cloud-client/faces/README.rst b/video/cloud-client/faces/README.rst index 05751389ca3..13f758e8f62 100644 --- a/video/cloud-client/faces/README.rst +++ b/video/cloud-client/faces/README.rst @@ -91,7 +91,7 @@ To run this sample: Usage Example: - python faces.py gs://cloudmleap/video/googlework.mp4 + python faces.py gs://demomaker/google_gmail.mp4 positional arguments: path GCS file path for face detection. diff --git a/video/cloud-client/shotchange/README.rst b/video/cloud-client/shotchange/README.rst index 6b5f9790c85..c074c30e243 100644 --- a/video/cloud-client/shotchange/README.rst +++ b/video/cloud-client/shotchange/README.rst @@ -91,7 +91,7 @@ To run this sample: Example Usage: - python shotchange.py gs://cloudmleap/video/googlework.mp4 + python shotchange.py gs://demomaker/gbikes_dinosaur.mp4 positional arguments: path GCS path for shot change detection.