Skip to content

Conversation

@happyhuman
Copy link
Contributor

The two new samples are for online document annotation.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 7, 2019
@happyhuman happyhuman requested review from dizcology and nnegrey March 7, 2019 18:21
@happyhuman
Copy link
Contributor Author

@nnegrey , @dizcology can you please review this PR?

@nnegrey
Copy link
Contributor

nnegrey commented Mar 7, 2019

Should move these to the beta_snippets.py file

@nnegrey
Copy link
Contributor

nnegrey commented Mar 11, 2019

Oh should probably re-run the README generator

@happyhuman happyhuman merged commit c2d8a9e into GoogleCloudPlatform:master Mar 12, 2019
@beccasaurus
Copy link
Contributor

@happyhuman is there going to be a follow-up PR which demonstrates async_batch_annotate_images?

@d-torres noticed that these 2 samples demonstrate calling the new synchronous version of annotating files/documents: batch_annotate_files.

  • vision_fulltext_detection_pdf_beta
  • vision_fulltext_detection_pdf_gcs_beta

The V1 Cloud Vision API currently provides:

  • rpc BatchAnnotateImages which is a synchronous method for analyzing images using Cloud Vision, e.g. PNG/JPG
  • AsyncBatchAnnotateFiles which is an asynchronous (Long-Running Operation) method for analyzing files/documents using Cloud Vision, e.g. PDF/TIFF

The v1p4beta API provides these methods:


This PR demonstrates how to use the new synchronous API for files/docs, but it doesn't demonstrate the new long-running operation for large batches of images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants