Skip to content

Commit 1876256

Browse files
authored
Udpate Beta Vision samples to use beta tags [(#1640)](GoogleCloudPlatform/python-docs-samples#1640)
1 parent a623e90 commit 1876256

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

samples/snippets/detect/beta_snippets.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import io
3434

3535

36-
# [START vision_localize_objects]
36+
# [START vision_localize_objects_beta]
3737
def localize_objects(path):
3838
"""Localize objects in the local image.
3939
@@ -56,10 +56,10 @@ def localize_objects(path):
5656
print('Normalized bounding polygon vertices: ')
5757
for vertex in object_.bounding_poly.normalized_vertices:
5858
print(' - ({}, {})'.format(vertex.x, vertex.y))
59-
# [END vision_localize_objects]
59+
# [END vision_localize_objects_beta]
6060

6161

62-
# [START vision_localize_objects_gcs]
62+
# [START vision_localize_objects_gcs_beta]
6363
def localize_objects_uri(uri):
6464
"""Localize objects in the image on Google Cloud Storage
6565
@@ -81,10 +81,10 @@ def localize_objects_uri(uri):
8181
print('Normalized bounding polygon vertices: ')
8282
for vertex in object_.bounding_poly.normalized_vertices:
8383
print(' - ({}, {})'.format(vertex.x, vertex.y))
84-
# [END vision_localize_objects_gcs]
84+
# [END vision_localize_objects_gcs_beta]
8585

8686

87-
# [START vision_handwritten_ocr]
87+
# [START vision_handwritten_ocr_beta]
8888
def detect_handwritten_ocr(path):
8989
"""Detects handwritten characters in a local image.
9090
@@ -127,10 +127,10 @@ def detect_handwritten_ocr(path):
127127
for symbol in word.symbols:
128128
print('\tSymbol: {} (confidence: {})'.format(
129129
symbol.text, symbol.confidence))
130-
# [END vision_handwritten_ocr]
130+
# [END vision_handwritten_ocr_beta]
131131

132132

133-
# [START vision_handwritten_ocr_gcs]
133+
# [START vision_handwritten_ocr_gcs_beta]
134134
def detect_handwritten_ocr_uri(uri):
135135
"""Detects handwritten characters in the file located in Google Cloud
136136
Storage.
@@ -171,7 +171,7 @@ def detect_handwritten_ocr_uri(uri):
171171
for symbol in word.symbols:
172172
print('\tSymbol: {} (confidence: {})'.format(
173173
symbol.text, symbol.confidence))
174-
# [END vision_handwritten_ocr_gcs]
174+
# [END vision_handwritten_ocr_gcs_beta]
175175

176176

177177
if __name__ == '__main__':

0 commit comments

Comments
 (0)