diff --git a/vision/cloud-client/detect/beta_snippets.py b/vision/cloud-client/detect/beta_snippets.py index ed7ef6ca7fd..9b745a58a45 100644 --- a/vision/cloud-client/detect/beta_snippets.py +++ b/vision/cloud-client/detect/beta_snippets.py @@ -33,7 +33,7 @@ import io -# [START vision_localize_objects] +# [START vision_localize_objects_beta] def localize_objects(path): """Localize objects in the local image. @@ -56,10 +56,10 @@ def localize_objects(path): print('Normalized bounding polygon vertices: ') for vertex in object_.bounding_poly.normalized_vertices: print(' - ({}, {})'.format(vertex.x, vertex.y)) -# [END vision_localize_objects] +# [END vision_localize_objects_beta] -# [START vision_localize_objects_gcs] +# [START vision_localize_objects_gcs_beta] def localize_objects_uri(uri): """Localize objects in the image on Google Cloud Storage @@ -81,10 +81,10 @@ def localize_objects_uri(uri): print('Normalized bounding polygon vertices: ') for vertex in object_.bounding_poly.normalized_vertices: print(' - ({}, {})'.format(vertex.x, vertex.y)) -# [END vision_localize_objects_gcs] +# [END vision_localize_objects_gcs_beta] -# [START vision_handwritten_ocr] +# [START vision_handwritten_ocr_beta] def detect_handwritten_ocr(path): """Detects handwritten characters in a local image. @@ -127,10 +127,10 @@ def detect_handwritten_ocr(path): for symbol in word.symbols: print('\tSymbol: {} (confidence: {})'.format( symbol.text, symbol.confidence)) -# [END vision_handwritten_ocr] +# [END vision_handwritten_ocr_beta] -# [START vision_handwritten_ocr_gcs] +# [START vision_handwritten_ocr_gcs_beta] def detect_handwritten_ocr_uri(uri): """Detects handwritten characters in the file located in Google Cloud Storage. @@ -171,7 +171,7 @@ def detect_handwritten_ocr_uri(uri): for symbol in word.symbols: print('\tSymbol: {} (confidence: {})'.format( symbol.text, symbol.confidence)) -# [END vision_handwritten_ocr_gcs] +# [END vision_handwritten_ocr_gcs_beta] if __name__ == '__main__':