Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2968c74

Browse filesBrowse files
authored
Udpate Beta Vision samples to use beta tags (GoogleCloudPlatform#1640)
1 parent 902ecf4 commit 2968c74
Copy full SHA for 2968c74

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed

‎vision/cloud-client/detect/beta_snippets.py

Copy file name to clipboardExpand all lines: vision/cloud-client/detect/beta_snippets.py
+8-8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.