From a45d042907152658daaef2b63eb72ffab44a9d77 Mon Sep 17 00:00:00 2001 From: chenyumic Date: Fri, 6 Apr 2018 22:57:36 -0700 Subject: [PATCH] Regenerate the README files and fix the Open in Cloud Shell link for some samples [(#1441)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1441) --- samples/snippets/crop_hints/README.rst | 4 ++-- samples/snippets/detect/README.rst | 14 ++++++++++---- samples/snippets/document_text/README.rst | 4 ++-- samples/snippets/face_detection/README.rst | 4 ++-- samples/snippets/quickstart/README.rst | 4 ++-- samples/snippets/web/README.rst | 4 ++-- 6 files changed, 20 insertions(+), 14 deletions(-) diff --git a/samples/snippets/crop_hints/README.rst b/samples/snippets/crop_hints/README.rst index 9dfd4084..a05205e0 100644 --- a/samples/snippets/crop_hints/README.rst +++ b/samples/snippets/crop_hints/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Crop Hints Tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. 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=vision/cloud-client/crop_hints/crop_hints.py;vision/cloud-client/crop_hints/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/crop_hints/crop_hints.py,vision/cloud-client/crop_hints/README.rst diff --git a/samples/snippets/detect/README.rst b/samples/snippets/detect/README.rst index e0d7a6f2..98103533 100644 --- a/samples/snippets/detect/README.rst +++ b/samples/snippets/detect/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Detect +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. 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=vision/cloud-client/detect/detect.py;vision/cloud-client/detect/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/detect/detect.py,vision/cloud-client/detect/README.rst @@ -75,7 +75,7 @@ To run this sample: $ python detect.py usage: detect.py [-h] - {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,crophints,crophints-uri,document,document-uri} + {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,web-geo,web-geo-uri,crophints,crophints-uri,document,document-uri} ... This application demonstrates how to perform basic operations with the @@ -86,13 +86,14 @@ To run this sample: python detect.py labels ./resources/landmark.jpg python detect.py web ./resources/landmark.jpg python detect.py web-uri http://wheresgus.com/dog.JPG + python detect.py web-geo ./resources/city.jpg python detect.py faces-uri gs://your-bucket/file.jpg For more information, the documentation at https://cloud.google.com/vision/docs. positional arguments: - {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,crophints,crophints-uri,document,document-uri} + {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,web-geo,web-geo-uri,crophints,crophints-uri,document,document-uri} faces Detects faces in an image. faces-uri Detects faces in the file located in Google Cloud Storage or the web. @@ -117,6 +118,11 @@ To run this sample: web Detects web annotations given an image. web-uri Detects web annotations in the file located in Google Cloud Storage. + web-geo Detects web annotations given an image, using the + geotag metadata in the iamge to detect web entities. + web-geo-uri Detects web annotations given an image in the file + located in Google Cloud Storage., using the geotag + metadata in the iamge to detect web entities. crophints Detects crop hints in an image. crophints-uri Detects crop hints in the file located in Google Cloud Storage. diff --git a/samples/snippets/document_text/README.rst b/samples/snippets/document_text/README.rst index 691ae14b..6fcf2b20 100644 --- a/samples/snippets/document_text/README.rst +++ b/samples/snippets/document_text/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Document Text tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. 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=vision/cloud-client/document_text/doctext.py;vision/cloud-client/document_text/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/document_text/doctext.py,vision/cloud-client/document_text/README.rst diff --git a/samples/snippets/face_detection/README.rst b/samples/snippets/face_detection/README.rst index 56eb6657..1b8d3b61 100644 --- a/samples/snippets/face_detection/README.rst +++ b/samples/snippets/face_detection/README.rst @@ -17,7 +17,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio This sample demonstrates how to use the Cloud Vision API to do face detection. -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -64,7 +64,7 @@ Face detection +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. 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=vision/cloud-client/face_detection/faces.py;vision/cloud-client/face_detection/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/face_detection/faces.py,vision/cloud-client/face_detection/README.rst diff --git a/samples/snippets/quickstart/README.rst b/samples/snippets/quickstart/README.rst index 5824b9ea..fa1656c6 100644 --- a/samples/snippets/quickstart/README.rst +++ b/samples/snippets/quickstart/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. 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=vision/cloud-client/quickstart/quickstart.py;vision/cloud-client/quickstart/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/quickstart/quickstart.py,vision/cloud-client/quickstart/README.rst diff --git a/samples/snippets/web/README.rst b/samples/snippets/web/README.rst index 07e572f3..eaed1c02 100644 --- a/samples/snippets/web/README.rst +++ b/samples/snippets/web/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Web +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. 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=vision/cloud-client/web/web_detect.py;vision/cloud-client/web/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/web/web_detect.py,vision/cloud-client/web/README.rst