33
33
import io
34
34
35
35
36
- # [START vision_localize_objects ]
36
+ # [START vision_localize_objects_beta ]
37
37
def localize_objects (path ):
38
38
"""Localize objects in the local image.
39
39
@@ -56,10 +56,10 @@ def localize_objects(path):
56
56
print ('Normalized bounding polygon vertices: ' )
57
57
for vertex in object_ .bounding_poly .normalized_vertices :
58
58
print (' - ({}, {})' .format (vertex .x , vertex .y ))
59
- # [END vision_localize_objects ]
59
+ # [END vision_localize_objects_beta ]
60
60
61
61
62
- # [START vision_localize_objects_gcs ]
62
+ # [START vision_localize_objects_gcs_beta ]
63
63
def localize_objects_uri (uri ):
64
64
"""Localize objects in the image on Google Cloud Storage
65
65
@@ -81,10 +81,10 @@ def localize_objects_uri(uri):
81
81
print ('Normalized bounding polygon vertices: ' )
82
82
for vertex in object_ .bounding_poly .normalized_vertices :
83
83
print (' - ({}, {})' .format (vertex .x , vertex .y ))
84
- # [END vision_localize_objects_gcs ]
84
+ # [END vision_localize_objects_gcs_beta ]
85
85
86
86
87
- # [START vision_handwritten_ocr ]
87
+ # [START vision_handwritten_ocr_beta ]
88
88
def detect_handwritten_ocr (path ):
89
89
"""Detects handwritten characters in a local image.
90
90
@@ -127,10 +127,10 @@ def detect_handwritten_ocr(path):
127
127
for symbol in word .symbols :
128
128
print ('\t Symbol: {} (confidence: {})' .format (
129
129
symbol .text , symbol .confidence ))
130
- # [END vision_handwritten_ocr ]
130
+ # [END vision_handwritten_ocr_beta ]
131
131
132
132
133
- # [START vision_handwritten_ocr_gcs ]
133
+ # [START vision_handwritten_ocr_gcs_beta ]
134
134
def detect_handwritten_ocr_uri (uri ):
135
135
"""Detects handwritten characters in the file located in Google Cloud
136
136
Storage.
@@ -171,7 +171,7 @@ def detect_handwritten_ocr_uri(uri):
171
171
for symbol in word .symbols :
172
172
print ('\t Symbol: {} (confidence: {})' .format (
173
173
symbol .text , symbol .confidence ))
174
- # [END vision_handwritten_ocr_gcs ]
174
+ # [END vision_handwritten_ocr_gcs_beta ]
175
175
176
176
177
177
if __name__ == '__main__' :
0 commit comments