All Questions
Tagged with cloud-document-ai java
10 questions
0
votes
1
answer
67
views
Filtering Google API responses using FieldMasks with Java SDK
I'm using Google's Java SDK to call into DocumentAI service. The response happens to contain the image for each page, in base64, and I'd like to filter that out. During the request building for doing ...
0
votes
1
answer
401
views
Document AI batch processing timeout using Java
I am trying to batch process a set of documents using Document AI and its Java SDK. My code is derived from the batch processing example for Java (seen here), but I have modified it to add more than ...
0
votes
1
answer
72
views
Cannot Import Google Cloud
I am following Google's official tutorial on setting up Document AI: https://cloud.google.com/document-ai/docs/libraries#client-libraries-install-java
My POM file:
<project>
<...
0
votes
2
answers
587
views
Google Doc AI Java SDK batchProcessDocumentsAsync produces "UNAUTHENTICATED" error with location=eu and FixedCredentialsProvider
I'm following the code example from Google Document AI code examples to make an async processing request through the Java SDK here: https://cloud.google.com/document-ai/docs/send-request#...
-2
votes
1
answer
71
views
Need to create labels/entity types for a Custom Document Extractor using Java client libraries
I have successfully created a Custom Document Extractor processor in the Google Cloud Console as described here. I have defined labels trained new version as well.
Also I achieved the same ...
0
votes
1
answer
992
views
How to read json response string into Document object of Document AI from java?
I'm working with another API which calls the google Document AI API. I'm trying to read the JSON String from the file into a Document object. How should this be done?
I tried the following but it is ...
6
votes
1
answer
7k
views
Google DocumentAI Java example fails with io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Request contains an invalid argument
I wasted hours trying the Google Document AI java example from https://cloud.google.com/document-ai/docs/quickstart-client-libraries
If you enter your for projectId, location and processorId like this
...
0
votes
1
answer
2k
views
Exception in SynchronizationContext when calling OperationFuture outside of callstack
I am using Google's DocumentAI SDK but this error stems from the gRPC SDK it seems. I am calling an asynchronous operation in DocumentAI which returns an OperationFuture. When I call the method ...
3
votes
1
answer
1k
views
FixedCredentialsProvider gives unauthorized exception when calling Google Cloud service
I am trying to call Google Cloud DocumentAI through a google service account. I have the json key that was generated for it and I load it into my application via the FixedCredentialsProvider and a ...
1
vote
2
answers
303
views
TableBoundHints in Google Cloud Document AI not working
I am trying to give a hint in Document AI to get table only in specific area. but it is not working.
TableBoundHint tableBoundHints = TableBoundHint.newBuilder()
.setBoundingBox(...