Skip to content

Commit e72ecae

Browse files
daspecsterlukesneeringer
authored andcommitted
Fix vision documentation redirects and references. (#3202)
1 parent e6159c6 commit e72ecae

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/vision-usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Face Detection
130130
an image and return the coordinates in the image of each `landmark type`_ that
131131
was detected.
132132

133-
.. _landmark type: https://cloud.google.com/vision/reference/rest/v1/images/annotate#type_1
133+
.. _landmark type: https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#type_1
134134

135135
.. code-block:: python
136136

vision/google/cloud/vision/face.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class LandmarkTypes(Enum):
434434
"""A representation of the face detection landmark types.
435435
436436
See:
437-
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Type_1
437+
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#type_1
438438
"""
439439
UNKNOWN_LANDMARK = 0
440440
LEFT_EYE = 1

vision/google/cloud/vision/feature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class FeatureTypes(object):
1919
"""Feature Types to indication which annotations to perform.
2020
2121
See:
22-
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Type
22+
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Type
2323
"""
2424
CROP_HINTS = 'CROP_HINTS'
2525
DOCUMENT_TEXT_DETECTION = 'DOCUMENT_TEXT_DETECTION'
@@ -45,7 +45,7 @@ class Feature(object):
4545
feature type.
4646
4747
See:
48-
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Feature
48+
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Feature
4949
"""
5050
def __init__(self, feature_type, max_results=1):
5151
try:

vision/google/cloud/vision/geometry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class Position(object):
137137
"""A 3D position in the image.
138138
139139
See:
140-
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Position
140+
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Position
141141
142142
:type x_coordinate: float
143143
:param x_coordinate: X position coordinate.
@@ -213,7 +213,7 @@ class Vertex(object):
213213
"""A vertex represents a 2D point in the image.
214214
215215
See:
216-
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Vertex
216+
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Vertex
217217
218218
:type x_coordinate: float
219219
:param x_coordinate: X position coordinate.

vision/google/cloud/vision/likelihood.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Likelihood(Enum):
3737
"""A representation of likelihood to give stable results across upgrades.
3838
3939
See:
40-
https://cloud.google.com/vision/reference/rest/v1/images/annotate#likelihood
40+
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#likelihood
4141
"""
4242
UNKNOWN = 'UNKNOWN'
4343
VERY_UNLIKELY = 'VERY_UNLIKELY'

0 commit comments

Comments
 (0)