如何在Google Cloud中调用或模拟Google Mobile Vision API?

问题描述:

背景:建立在> Google云端视觉OCR支持栏上,我使用Google Mobile Vision(条形码API)对PDF417条形码进行离线分析,但可以从Google Cloud访问.

Background: Building on Does google cloud vision OCR support bar code reading?, I want to do offline analysis of PDF417 barcodes using Google Mobile Vision (Barcode API) but accessible from Google Cloud.

是否可以通过Android/iOS外的方式调用,模拟或以其他方式访问Google Mobile Vision API?

Is there any way to call, emulate or otherwise access the Google Mobile Vision API off-Android/off-iOS?

我最终推出了 Google Cloud Function 来检测加载到Google Cloud Storage中的图像的QR码,该图像处理了与您一样希望使用Cloud Vision的用例.您可以使用通过图像发送并使用 JS库读取条形码.

I ended up rolling a Google Cloud Function to detect QR codes for images loaded into Google Cloud Storage, which handled the use case where, like you, I would have preferred to use Cloud Vision. You could do something similar with a HTTP Cloud Function that sends over an image, and uses a JS library to read the barcodes.