Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vision documentation redirects and references. #3202

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/vision-usage.rst
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
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
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
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
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