Google 愿景:如何在欧盟强制处理

Google Vision: How to enforce processing in EU

我正在使用 google 视力 api。为了支持 GDPR,我需要在欧盟处理 OCR。 我该如何执行?

谢谢!

根据 Release Notes,为 OCR 添加了区域支持request.But示例不清楚如何指定区域。

此功能在 Vision API 的 v1p4beta1 版本中可用。使用以下端点,您可以指示应在欧盟地区处理您的文件:

对于注释方法:https://vision.googleapis.com/v1p4beta1/{parent=projects/<your_project_id>/locations/eu}/files:annotate

对于批注方法:https://vision.googleapis.com/v1p4beta1/{parent=projects/<your_project_id>/locations/eu}/files:asyncBatchAnnotate

这两个 annotate and batch annotate 都有记录,但要找到这些文件有点棘手。

您可以使用端点eu-vision.googleapis.com. There is also a US endpoint. For examples of how to use see https://cloud.google.com/vision/docs/ocr#regionalization