Client for interacting with the Google Cloud Vision API.
Client(project=None, credentials=None, http=None, use_gax=None)#
Client to bundle configuration needed for API requests.
- project (str) – the project which the client acts on behalf of. If not passed, falls back to the default inferred from the environment.
- credentials (
Credentials) – (Optional) The OAuth2 Credentials to use for this client. If not passed (and if no
httpobject is passed), falls back to the default inferred from the environment.
- http (
Http) – (Optional) HTTP object to make requests. Can be any object that defines
request()with the same interface as
request(). If not passed, an
httpobject is created that is bound to the
credentialsfor the current object.
- use_gax (bool) – (Optional) Explicitly specifies whether
to use the gRPC transport (via GAX) or HTTP. If unset,
falls back to the
The scopes required for authenticating as a Cloud Vision consumer.
Batch multiple images into a single API request.
Returns: Instance of
image(content=None, filename=None, source_uri=None)#
Get instance of Image using current client.
Parameters: Return type: Returns:
Image instance with the current client attached.