3333import io
3434
3535
36- # [START vision_localize_objects ]
36+ # [START vision_localize_objects_beta ]
3737def 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 ]
6363def 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 ]
8888def 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 ('\t Symbol: {} (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 ]
134134def 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 ('\t Symbol: {} (confidence: {})' .format (
173173 symbol .text , symbol .confidence ))
174- # [END vision_handwritten_ocr_gcs ]
174+ # [END vision_handwritten_ocr_gcs_beta ]
175175
176176
177177if __name__ == '__main__' :
0 commit comments