Skip to content

Commit 06d78fc

Browse files
authored
Merge pull request #2833 from daspecster/vision-readme-update-for-landmark
Update reference to bounds.
2 parents 4a0225d + 8e6915b commit 06d78fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/vision-usage.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ will also provide their known geographical locations if available.
169169
-33.857123
170170
>>> landmarks[0].locations[0].longitude
171171
151.213921
172-
>>> landmarks[0].bounding_poly.vertices[0].x_coordinate
172+
>>> landmarks[0].bounds.vertices[0].x_coordinate
173173
78
174-
>>> landmarks[0].bounding_poly.vertices[0].y_coordinate
174+
>>> landmarks[0].bounds.vertices[0].y_coordinate
175175
162
176176
177177
@@ -197,11 +197,11 @@ iterating through the detected logo's ``vertices``.
197197
'Google'
198198
>>> first_logo.score
199199
0.9795432
200-
>>> print(len(first_logo.bounding_poly.vertices))
200+
>>> print(len(first_logo.bounds.vertices))
201201
4
202-
>>> first_logo.bounding_poly.vertices[0].x_coordinate
202+
>>> first_logo.bounds.vertices[0].x_coordinate
203203
78
204-
>>> first_logo.bounding_poly.vertices[0].y_coordinate
204+
>>> first_logo.bounds.vertices[0].y_coordinate
205205
62
206206
207207

0 commit comments

Comments
 (0)