-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Vision API creating Annotator client #2921
Copy link
Copy link
Closed
Labels
api: visionIssues related to the Cloud Vision API.Issues related to the Cloud Vision API.authtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: visionIssues related to the Cloud Vision API.Issues related to the Cloud Vision API.authtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.