@@ -31,7 +31,7 @@ def __init__(self, roll, pan, tilt):
3131 def from_api_repr (cls , response ):
3232 """Factory: construct the angles from an Vision API response.
3333
34- :rtype: :class:`google.cloud.vision.face.Angles`
34+ :rtype: :class:`~ google.cloud.vision.face.Angles`
3535 :returns: An `Angles` instance with data parsed from `response`.
3636 """
3737 roll = response ['rollAngle' ]
@@ -88,7 +88,7 @@ def from_api_repr(cls, response):
8888 :type response: dict
8989 :param response: Response dictionary representing a face.
9090
91- :rtype: :class:`google.cloud.vision.face.Emotions`
91+ :rtype: :class:`~ google.cloud.vision.face.Emotions`
9292 :returns: Populated instance of `Emotions`.
9393 """
9494 joy_likelihood = getattr (Likelihood , response ['joyLikelihood' ])
@@ -106,7 +106,7 @@ def joy_likelihood(self):
106106
107107 :rtype: str
108108 :returns: String derived from
109- :class:`google.cloud.vision.face.Likelihood`.
109+ :class:`~ google.cloud.vision.face.Likelihood`.
110110 """
111111 return self ._joy_likelihood
112112
@@ -116,7 +116,7 @@ def sorrow_likelihood(self):
116116
117117 :rtype: str
118118 :returns: String derived from
119- :class:`google.cloud.vision.face.Likelihood`.
119+ :class:`~ google.cloud.vision.face.Likelihood`.
120120 """
121121 return self ._sorrow_likelihood
122122
@@ -126,7 +126,7 @@ def surprise_likelihood(self):
126126
127127 :rtype: str
128128 :returns: String derived from
129- :class:`google.cloud.vision.face.Likelihood`.
129+ :class:`~ google.cloud.vision.face.Likelihood`.
130130 """
131131 return self ._surprise_likelihood
132132
@@ -136,7 +136,7 @@ def anger_likelihood(self):
136136
137137 :rtype: str
138138 :returns: String derived from
139- :class:`google.cloud.vision.face.Likelihood`.
139+ :class:`~ google.cloud.vision.face.Likelihood`.
140140 """
141141 return self ._anger_likelihood
142142
@@ -164,7 +164,7 @@ def from_api_repr(cls, response):
164164 :type response: dict
165165 :param response: Face annotation dict returned from the Vision API.
166166
167- :rtype: :class:`google.cloud.vision.face.Face`
167+ :rtype: :class:`~ google.cloud.vision.face.Face`
168168 :returns: A instance of `Face` with data parsed from `response`.
169169 """
170170 angles = Angles .from_api_repr (response )
@@ -186,7 +186,7 @@ def from_api_repr(cls, response):
186186 def angles (self ):
187187 """Accessor to the pan, tilt and roll angles of a Face.
188188
189- :rtype: :class:`google.cloud.vision.face.Angles`
189+ :rtype: :class:`~ google.cloud.vision.face.Angles`
190190 :returns: Pan, tilt and roll angles of the detected face.
191191 """
192192
@@ -196,7 +196,7 @@ def angles(self):
196196 def bounds (self ):
197197 """Accessor to the bounding poly information of the detected face.
198198
199- :rtype: :class:`google.cloud.vision.face.Bounds`
199+ :rtype: :class:`~ google.cloud.vision.face.Bounds`
200200 :returns: An instance of ``Bounds`` which has a list of vertices.
201201 """
202202 return self ._bounds
@@ -214,7 +214,7 @@ def detection_confidence(self):
214214 def emotions (self ):
215215 """Accessor to the possible emotions expressed in the detected face.
216216
217- :rtype: :class:`google.cloud.vision.face.Emotions`
217+ :rtype: :class:`~ google.cloud.vision.face.Emotions`
218218 :returns: An instance of ``Emotions`` with joy, sorrow, anger, surprise
219219 likelihood.
220220 """
@@ -224,7 +224,7 @@ def emotions(self):
224224 def fd_bounds (self ):
225225 """Accessor to the skin area bounding poly of the detected face.
226226
227- :rtype: :class:`google.cloud.vision.image.FDBounds`
227+ :rtype: :class:`~ google.cloud.vision.image.FDBounds`
228228 :returns: An instance of ``FDBounds`` which has a list of vertices.
229229 """
230230 return self ._fd_bounds
@@ -233,17 +233,17 @@ def fd_bounds(self):
233233 def headwear_likelihood (self ):
234234 """Headwear likelihood.
235235
236- :rtype: :class:`google.cloud.vision.face.Likelihood`
236+ :rtype: :class:`~ google.cloud.vision.face.Likelihood`
237237 :returns: String representing the likelihood based on
238- :class:`google.cloud.vision.face.Likelihood`
238+ :class:`~ google.cloud.vision.face.Likelihood`
239239 """
240240 return self ._headwear_likelihood
241241
242242 @property
243243 def image_properties (self ):
244244 """Image properties from imaged used in face detection.
245245
246- :rtype: :class:`google.cloud.vision.face.FaceImageProperties`
246+ :rtype: :class:`~ google.cloud.vision.face.FaceImageProperties`
247247 :returns: ``FaceImageProperties`` object with image properties.
248248 """
249249 return self ._image_properties
@@ -252,7 +252,7 @@ def image_properties(self):
252252 def landmarks (self ):
253253 """Accessor to the facial landmarks detected in a face.
254254
255- :rtype: :class:`google.cloud.vision.face.Landmarks`
255+ :rtype: :class:`~ google.cloud.vision.face.Landmarks`
256256 :returns: ``Landmarks`` object with facial landmarks as properies.
257257 """
258258 return self ._landmarks
@@ -278,7 +278,7 @@ def __init__(self, blurred_likelihood, underexposed_likelihood):
278278 def from_api_repr (cls , response ):
279279 """Factory: construct image properties from image.
280280
281- :rtype: :class:`google.cloud.vision.face.FaceImageProperties`
281+ :rtype: :class:`~ google.cloud.vision.face.FaceImageProperties`
282282 :returns: Instance populated with image property data.
283283 """
284284 blurred_likelihood = getattr (Likelihood ,
@@ -294,7 +294,7 @@ def blurred_likelihood(self):
294294
295295 :rtype: str
296296 :returns: String representation derived from
297- :class:`google.cloud.vision.face.Position`.
297+ :class:`~ google.cloud.vision.face.Position`.
298298 """
299299 return self ._blurred_likelihood
300300
@@ -304,7 +304,7 @@ def underexposed_likelihood(self):
304304
305305 :rtype: str
306306 :returns: String representation derived from
307- :class:`google.cloud.vision.face.Position`.
307+ :class:`~ google.cloud.vision.face.Position`.
308308 """
309309 return self ._underexposed_likelihood
310310
@@ -369,7 +369,7 @@ def from_api_repr(cls, response_landmark):
369369 :type response_landmark: dict
370370 :param response_landmark: Landmark representation from Vision API.
371371
372- :rtype: :class:`google.cloud.vision.face.Landmark`
372+ :rtype: :class:`~ google.cloud.vision.face.Landmark`
373373 :returns: Populated instance of `Landmark`.
374374 """
375375 position = Position .from_api_repr (response_landmark ['position' ])
@@ -380,7 +380,7 @@ def from_api_repr(cls, response_landmark):
380380 def position (self ):
381381 """Landmark position on face.
382382
383- :rtype: :class:`google.cloud.vision.face.Position`
383+ :rtype: :class:`~ google.cloud.vision.face.Position`
384384 :returns: Instance of `Position` with landmark coordinates.
385385 """
386386 return self ._position
0 commit comments