Skip to content

Vision API creating Annotator client #2921

@redserpent7

Description

@redserpent7

Hi,

I am trying to find a documentation for how to create an annotator client with a credentials file. I do not want to use goolge default credentials. When using the translate API, I load my credentials file like so:

Credentials creds = ServiceAccountCredentials.fromStream(new FileInputStream("/path/to/credential/file"));
return TranslateOptions.newBuilder().setCredentials(creds).build().getService();

What is the equivalent way in Vision?

Metadata

Metadata

Assignees

Labels

api: visionIssues related to the Cloud Vision API.authtype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions