Determine the project used by Vision Api

152 Views Asked by At

I'm working on a project on gcp using the OCR service from Google Vision. My code is simple, I've declared a vision ImageAnnotatorClient like this:

client = vision.ImageAnnotatorClient()

and then call some batch annotation request like this:

response = client.batch_annotate_images(requests=[....])

There is a way to know which project will be used for the billing of the requests? I've not explicitly set the credential and, in this case, the documentation (https://googleapis.dev/python/vision/latest/vision_v1/image_annotator.html) says that

if none are specified, the client will attempt to ascertain the credentials from the environment.

I need to know what "ascertain the credentials from the environment" means in this case, since I've alrteady done some requests and I wold like to know on which of the projects I'm working right now the requests will be charged.

0

There are 0 best solutions below