Skip to content

Commit

Permalink
Fix vision documentation redirects and references. (googleapis#3202)
Browse files Browse the repository at this point in the history
  • Loading branch information
daspecster authored and lukesneeringer committed Mar 27, 2017
1 parent eb33458 commit c6fb5df
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/vision-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Face Detection
an image and return the coordinates in the image of each `landmark type`_ that
was detected.

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

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion vision/google/cloud/vision/face.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ class LandmarkTypes(Enum):
"""A representation of the face detection landmark types.
See:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Type_1
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#type_1
"""
UNKNOWN_LANDMARK = 0
LEFT_EYE = 1
Expand Down
4 changes: 2 additions & 2 deletions vision/google/cloud/vision/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FeatureTypes(object):
"""Feature Types to indication which annotations to perform.
See:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Type
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Type
"""
CROP_HINTS = 'CROP_HINTS'
DOCUMENT_TEXT_DETECTION = 'DOCUMENT_TEXT_DETECTION'
Expand All @@ -45,7 +45,7 @@ class Feature(object):
feature type.
See:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Feature
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Feature
"""
def __init__(self, feature_type, max_results=1):
try:
Expand Down
4 changes: 2 additions & 2 deletions vision/google/cloud/vision/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Position(object):
"""A 3D position in the image.
See:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Position
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Position
:type x_coordinate: float
:param x_coordinate: X position coordinate.
Expand Down Expand Up @@ -213,7 +213,7 @@ class Vertex(object):
"""A vertex represents a 2D point in the image.
See:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#Vertex
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#Vertex
:type x_coordinate: float
:param x_coordinate: X position coordinate.
Expand Down
2 changes: 1 addition & 1 deletion vision/google/cloud/vision/likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Likelihood(Enum):
"""A representation of likelihood to give stable results across upgrades.
See:
https://cloud.google.com/vision/reference/rest/v1/images/annotate#likelihood
https://cloud.google.com/vision/docs/reference/rest/v1/images/annotate#likelihood
"""
UNKNOWN = 'UNKNOWN'
VERY_UNLIKELY = 'VERY_UNLIKELY'
Expand Down

0 comments on commit c6fb5df

Please sign in to comment.