Search code examples
google-cloud-platformgoogle-vision

Google Vision: How to enforce processing in EU


I am using google vision api. In order to support GDPR, I need the OCR to be processed in EU. How can I enforce it?

Thanks!


Solution

  • This functionality is available in the v1p4beta1 version of the Vision API. Using the following endpoints you can indicate that your file should be processed in the EU region:

    For the annotate method: https://vision.googleapis.com/v1p4beta1/{parent=projects/<your_project_id>/locations/eu}/files:annotate

    For the batch annotate method: https://vision.googleapis.com/v1p4beta1/{parent=projects/<your_project_id>/locations/eu}/files:asyncBatchAnnotate

    This is documented for both annotate and batch annotate, though it is a bit tricky to find these documents.