Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Sep 24, 2020
1 parent 17c018a commit f4853df
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/snippets/detect/beta_snippets.py
Expand Up @@ -347,6 +347,8 @@ def async_batch_annotate_images_uri(input_image_uri, output_uri):
output = blob_list[0]

json_string = output.download_as_string()
print("==sijun beta_snippets.py json_string")
print(json_string)
response = json_format.Parse(json_string,
vision.BatchAnnotateImagesResponse())

Expand Down
2 changes: 2 additions & 0 deletions samples/snippets/detect/detect.py
Expand Up @@ -860,6 +860,8 @@ def async_detect_document(gcs_source_uri, gcs_destination_uri):
output = blob_list[0]

json_string = output.download_as_string()
print("==sijun detect.py json_string")
print(json_string)
response = json_format.Parse(
json_string, vision.AnnotateFileResponse())

Expand Down
4 changes: 4 additions & 0 deletions samples/snippets/product_search/product_search.py
Expand Up @@ -76,6 +76,8 @@ def get_similar_products_file(
image, image_context=image_context)

index_time = response.product_search_results.index_time
print("==sijun product_search.py:79")
print(response.product_search_results)
print('Product set index time: {}').format(index_time)

results = response.product_search_results.results
Expand Down Expand Up @@ -136,6 +138,8 @@ def get_similar_products_uri(
image, image_context=image_context)

index_time = response.product_search_results.index_time
print("==sijun product_search.py:141")
print(response.product_search_results)
print('Product set index time: {}').format(index_time)

results = response.product_search_results.results
Expand Down
4 changes: 4 additions & 0 deletions samples/snippets/product_search/product_set_management.py
Expand Up @@ -82,6 +82,8 @@ def list_product_sets(project_id, location):

# Display the product set information.
for product_set in product_sets:
print("==sijun product_set_management.py:85")
print(product_set)
print('Product set name: {}'.format(product_set.name))
print('Product set id: {}'.format(product_set.name.split('/')[-1]))
print('Product set display name: {}'.format(product_set.display_name))
Expand Down Expand Up @@ -111,6 +113,8 @@ def get_product_set(project_id, location, product_set_id):
print('Product set name: {}'.format(product_set.name))
print('Product set id: {}'.format(product_set.name.split('/')[-1]))
print('Product set display name: {}'.format(product_set.display_name))
print("==sijun product_set_management.py:116")
print(product_set)
print('Product set index time: {}').format(product_set.index_time)
# [END vision_product_search_get_product_set]

Expand Down

0 comments on commit f4853df

Please sign in to comment.