Skip to content

Commit a45d042

Browse files
author
chenyumic
authored
Regenerate the README files and fix the Open in Cloud Shell link for some samples [(#1441)](GoogleCloudPlatform/python-docs-samples#1441)
1 parent 5040962 commit a45d042

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

samples/snippets/crop_hints/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
1616

1717

1818

19-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
19+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
2020

2121
Setup
2222
-------------------------------------------------------------------------------
@@ -63,7 +63,7 @@ Crop Hints Tutorial
6363
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6464

6565
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66-
: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
66+
: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
6767

6868

6969

samples/snippets/detect/README.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
1616

1717

1818

19-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
19+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
2020

2121
Setup
2222
-------------------------------------------------------------------------------
@@ -63,7 +63,7 @@ Detect
6363
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6464

6565
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66-
: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
66+
: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
6767

6868

6969

@@ -75,7 +75,7 @@ To run this sample:
7575
$ python detect.py
7676
7777
usage: detect.py [-h]
78-
{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}
78+
{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}
7979
...
8080
8181
This application demonstrates how to perform basic operations with the
@@ -86,13 +86,14 @@ To run this sample:
8686
python detect.py labels ./resources/landmark.jpg
8787
python detect.py web ./resources/landmark.jpg
8888
python detect.py web-uri http://wheresgus.com/dog.JPG
89+
python detect.py web-geo ./resources/city.jpg
8990
python detect.py faces-uri gs://your-bucket/file.jpg
9091
9192
For more information, the documentation at
9293
https://cloud.google.com/vision/docs.
9394
9495
positional arguments:
95-
{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}
96+
{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}
9697
faces Detects faces in an image.
9798
faces-uri Detects faces in the file located in Google Cloud
9899
Storage or the web.
@@ -117,6 +118,11 @@ To run this sample:
117118
web Detects web annotations given an image.
118119
web-uri Detects web annotations in the file located in Google
119120
Cloud Storage.
121+
web-geo Detects web annotations given an image, using the
122+
geotag metadata in the iamge to detect web entities.
123+
web-geo-uri Detects web annotations given an image in the file
124+
located in Google Cloud Storage., using the geotag
125+
metadata in the iamge to detect web entities.
120126
crophints Detects crop hints in an image.
121127
crophints-uri Detects crop hints in the file located in Google Cloud
122128
Storage.

samples/snippets/document_text/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
1616

1717

1818

19-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
19+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
2020

2121
Setup
2222
-------------------------------------------------------------------------------
@@ -63,7 +63,7 @@ Document Text tutorial
6363
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6464

6565
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66-
: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
66+
: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
6767

6868

6969

samples/snippets/face_detection/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
1717
This sample demonstrates how to use the Cloud Vision API to do face detection.
1818

1919

20-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
20+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
2121

2222
Setup
2323
-------------------------------------------------------------------------------
@@ -64,7 +64,7 @@ Face detection
6464
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6565

6666
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
67-
: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
67+
: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
6868

6969

7070

samples/snippets/quickstart/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
1616

1717

1818

19-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
19+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
2020

2121
Setup
2222
-------------------------------------------------------------------------------
@@ -63,7 +63,7 @@ Quickstart
6363
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6464

6565
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66-
: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
66+
: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
6767

6868

6969

samples/snippets/web/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio
1616

1717

1818

19-
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
19+
.. _Google Cloud Vision API: https://cloud.google.com/vision/docs
2020

2121
Setup
2222
-------------------------------------------------------------------------------
@@ -63,7 +63,7 @@ Web
6363
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6464

6565
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66-
: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
66+
: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
6767

6868

6969

0 commit comments

Comments
 (0)