Java idiomatic client for Document AI.
If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-document-ai</artifactId>
<version>2.14.0</version>
</dependency>If you are using Gradle without BOM, add this to your dependencies:
implementation 'com.google.cloud:google-cloud-document-ai:2.14.0'If you are using SBT, add this to your dependencies:
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.14.0"See the Authentication section in the base directory's README.
The client application making API calls must be granted authorization scopes required for the desired Document AI APIs, and the authenticated principal must have the IAM role(s) required to access GCP resources using the Document AI API calls.
You will need a Google Cloud Platform Console project with the Document AI API enabled.
You will need to enable billing to use Google Document AI.
Follow these instructions to get your project set up. You will also need to set up the local development environment by
installing the Google Cloud SDK and running the following commands in command line:
gcloud auth login and gcloud config set project [YOUR PROJECT ID].
You'll need to obtain the google-cloud-document-ai library. See the Quickstart section
to add google-cloud-document-ai as a dependency in your code.
Document AI allows developers to unlock insights from your documents with machine learning.
See the Document AI client library docs to learn how to use this Document AI Client Library.
To get help, follow the instructions in the shared Troubleshooting document.