From b26750bd523a7897167f92a0e614758a4a6b7761 Mon Sep 17 00:00:00 2001 From: Thomas Schultz Date: Mon, 27 Mar 2017 14:11:12 -0400 Subject: [PATCH] Fix vision documentation redirects and references. (#3202) --- packages/google-cloud-vision/google/cloud/vision/face.py | 2 +- packages/google-cloud-vision/google/cloud/vision/feature.py | 4 ++-- packages/google-cloud-vision/google/cloud/vision/geometry.py | 4 ++-- .../google-cloud-vision/google/cloud/vision/likelihood.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/google-cloud-vision/google/cloud/vision/face.py b/packages/google-cloud-vision/google/cloud/vision/face.py index cdb744c97cb5..36f4ed54b4ca 100644 --- a/packages/google-cloud-vision/google/cloud/vision/face.py +++ b/packages/google-cloud-vision/google/cloud/vision/face.py @@ -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 diff --git a/packages/google-cloud-vision/google/cloud/vision/feature.py b/packages/google-cloud-vision/google/cloud/vision/feature.py index cb5dc940a306..2a2b5b2d6ef7 100644 --- a/packages/google-cloud-vision/google/cloud/vision/feature.py +++ b/packages/google-cloud-vision/google/cloud/vision/feature.py @@ -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' @@ -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: diff --git a/packages/google-cloud-vision/google/cloud/vision/geometry.py b/packages/google-cloud-vision/google/cloud/vision/geometry.py index b9cc2a2dd6e2..9779282ef240 100644 --- a/packages/google-cloud-vision/google/cloud/vision/geometry.py +++ b/packages/google-cloud-vision/google/cloud/vision/geometry.py @@ -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. @@ -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. diff --git a/packages/google-cloud-vision/google/cloud/vision/likelihood.py b/packages/google-cloud-vision/google/cloud/vision/likelihood.py index a83b2991f2bb..6fffc6640739 100644 --- a/packages/google-cloud-vision/google/cloud/vision/likelihood.py +++ b/packages/google-cloud-vision/google/cloud/vision/likelihood.py @@ -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'