cedws / finch

A proof-of-concept for enhancing and organising an image collection using Google's Vision API
GNU General Public License v3.0
0 stars 1 forks source link

Provision Cloud Storage on-the-fly. #14

Closed cedws closed 6 years ago

cedws commented 6 years ago

The Vision API has a request body limit of 10MB, which is easily reached when encoding high quality images to Base64.

It's possible to pass a Google Cloud Storage URI to the Vision API. If the images being processed are pushed to Cloud Storage, the process will be faster overall, because all web detection queries can be bundled into one request. It will also allow images of up to 20MB to be processed.

I would like Finch to provision a Cloud Storage container on-the-fly, upload the images to be processed, run the Vision API query, and then deallocate the container to avoid incurring unnecessary costs.

cedws commented 6 years ago

Closing. I have created a new issue to use the gRPC API instead, which doesn't have these limitations and offers better performance.