diff --git a/samples/analyze/README.rst b/samples/analyze/README.rst index 1b55c7e7..51982225 100644 --- a/samples/analyze/README.rst +++ b/samples/analyze/README.rst @@ -3,6 +3,10 @@ Google Cloud Video Intelligence API Python Samples =============================================================================== +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/README.rst + + This directory contains samples for Google Cloud Video Intelligence API. `Google Cloud Video Intelligence API`_ allows developers to easily integrate feature detection in video. @@ -54,6 +58,10 @@ Samples analyze +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/analyze.py;video/cloud-client/analyze/README.rst + + To run this sample: @@ -63,32 +71,33 @@ To run this sample: $ python analyze.py usage: analyze.py [-h] {faces,labels,labels_file,explicit_content,shots} ... - + This application demonstrates face detection, label detection, explicit content, and shot change detection using the Google Cloud API. - + Usage Examples: - + 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 explicit_content gs://demomaker/gbikes_dinosaur.mp4 - + positional arguments: {faces,labels,labels_file,explicit_content,shots} faces Detects faces given a GCS path. labels Detects labels given a GCS path. - labels_file Detects labels given a file path. + labels_file Detect labels given a file path. explicit_content Detects explicit content from the GCS path to a video. shots Detects camera shot changes. - + optional arguments: -h, --help show this help message and exit + The client library ------------------------------------------------------------------------------- diff --git a/samples/analyze/README.rst.in b/samples/analyze/README.rst.in index 4249d48a..5dc673c1 100644 --- a/samples/analyze/README.rst.in +++ b/samples/analyze/README.rst.in @@ -18,3 +18,5 @@ samples: show_help: True cloud_client_library: true + +folder: video/cloud-client/analyze \ No newline at end of file diff --git a/samples/analyze/resources/README.md b/samples/analyze/resources/README.md index a88a180d..e33d7137 100644 --- a/samples/analyze/resources/README.md +++ b/samples/analyze/resources/README.md @@ -1,5 +1,10 @@ # Resources folder for local files +[![Open in Cloud Shell][shell_img]][shell_link] + +[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/resources/README.md + 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.