3
3
Google Cloud Vision API Python Samples
4
4
===============================================================================
5
5
6
- This directory contains samples for Google Cloud Vision API. ` Google Cloud Vision API `_ allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content
6
+ This directory contains samples for Google Cloud Vision API. [ Google Cloud Vision API][0] allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content
7
7
8
8
9
9
10
10
11
- .. _ Google Cloud Vision API : https://cloud.google.com/vision/docs
11
+ [0] : https://cloud.google.com/vision/docs
12
12
13
13
Setup
14
14
-------------------------------------------------------------------------------
@@ -17,12 +17,12 @@ Setup
17
17
Authentication
18
18
++++++++++++++
19
19
20
- Authentication is typically done through ` Application Default Credentials `_ ,
20
+ Authentication is typically done through [ Application Default Credentials][11] ,
21
21
which means you do not have to change the code to authenticate as long as
22
22
your environment has credentials. You have a few options for setting up
23
23
authentication:
24
24
25
- #. When running locally, use the ` Google Cloud SDK `_
25
+ #. When running locally, use the [ Google Cloud SDK][12]
26
26
27
27
.. code-block :: bash
28
28
@@ -31,7 +31,7 @@ authentication:
31
31
32
32
#. When running on App Engine or Compute Engine, credentials are already
33
33
set-up. However, you may need to configure your Compute Engine instance
34
- with ` additional scopes `_ .
34
+ with [ additional scopes][13] .
35
35
36
36
#. You can create a `Service Account key file `_. This file can be used to
37
37
authenticate to Google Cloud Platform services from any environment. To use
@@ -42,14 +42,14 @@ authentication:
42
42
43
43
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44
44
45
- .. _ Application Default Credentials : https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46
- .. _ additional scopes : https://cloud.google.com/compute/docs/authentication#using
47
- .. _ Service Account key file : https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
45
+ [11] : https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46
+ [12] : https://cloud.google.com/compute/docs/authentication#using
47
+ [13] : https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
48
48
49
49
Install Dependencies
50
50
++++++++++++++++++++
51
51
52
- #. Install ` pip `_ and ` virtualenv `_ if you do not already have them.
52
+ #. Install [ pip][21] and [ virtualenv][22] if you do not already have them.
53
53
54
54
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
55
55
@@ -64,8 +64,8 @@ Install Dependencies
64
64
65
65
$ pip install -r requirements.txt
66
66
67
- .. _ pip : https://pip.pypa.io/
68
- .. _ virtualenv : https://virtualenv.pypa.io/
67
+ [21] : https://pip.pypa.io/
68
+ [22] : https://virtualenv.pypa.io/
69
69
70
70
Samples
71
71
-------------------------------------------------------------------------------
@@ -152,16 +152,11 @@ To run this sample:
152
152
The client library
153
153
-------------------------------------------------------------------------------
154
154
155
- This sample uses the ` Google Cloud Client Library for Python `_ .
155
+ This sample uses the [ Google Cloud Client Library for Python][1] .
156
156
You can read the documentation for more details on API usage and use GitHub
157
- to ` browse the source `_ and ` report issues `_ .
157
+ to [ browse the source][2] and [ report issues][3] .
158
158
159
- .. Google Cloud Client Library for Python:
160
- https://googlecloudplatform.github.io/google-cloud-python/
161
- .. browse the source:
162
- https://github.com/GoogleCloudPlatform/google-cloud-python
163
- .. report issues:
164
- https://github.com/GoogleCloudPlatform/google-cloud-python/issues
165
-
166
-
167
- .. _Google Cloud SDK : https://cloud.google.com/sdk/
159
+ [1]: https://googlecloudplatform.github.io/google-cloud-python/
160
+ [2]: https://github.com/GoogleCloudPlatform/google-cloud-python
161
+ [3]: https://github.com/GoogleCloudPlatform/google-cloud-python/issues
162
+ [4]: https://cloud.google.com/sdk/
0 commit comments