Questions tagged [cloud-document-ai]

This tag is for the Document AI product within Google Cloud Platform.

200 questions
0
votes
0 answers

Google DocumentAI; How to get the Bearer Token?

I have been tasked with trying to use the Google DocumentAI service to extract table data from PDF files. I am using Alteryx, but the principle would apply to PostMan or other apps where you format your own requests. I have set up a Google Cloud…
0
votes
1 answer

How to send document to Doc AI API

I want to send a PDF document in the JSON request to Document AI Solutions, using Google Apps Script. I'm using the OCR processor, here is the doc: https://cloud.google.com/document-ai/docs/ocr I set some variables from the GCP, such as PROJECT_ID,…
0
votes
1 answer

rowSpan and colSpan of cell are always 1, by Google Document AI processor

import json ifp = open('log.json') response = json.load(ifp) for bodyRow in response['document']['pages'][0]['tables'][1]['bodyRows']: for cell in bodyRow['cells']: print(f'rowSpan is {cell["rowSpan"]}]') log.json is the ocr and parsed…
0
votes
1 answer

Using Google Document AI in .NET C#

I'm trying to process invoices using Google Document AI to get all the data from the document in .NET C#. I've added the resources from nugget (Google.Apis.Document.v1beta3) but can't find any documentation to use it in C#. Does anybody has any…
0
votes
2 answers

Cloud Document AI can't process documents from storage

I have the following code: const client = new DocumentProcessorServiceClient(); const inputConfig = { mimeType: 'application/pdf', gcsSource: { uri: gcsSourceUri, }, }; const outputConfig = { gcsDestination: { uri:…
RuslanZab
  • 115
  • 2
  • 10
0
votes
2 answers

Document AI unsupported input file format

Since the last update with Document AI Node.js API, I'm not able to send in JPEG file formats any more. I received the following message first: Error: 3 INVALID_ARGUMENT: At this time, the only MIME types supported are…
fredsco
  • 313
  • 4
  • 19
0
votes
1 answer

Is there a way to pass credentials programmatically for using Google documentAI without reading from a disk?

I am trying to run the demo code given in PDF parsing of GCP document AI. To run the code, exporting Google credentials as a command line works fine. The problem comes when the code needs to run in memory and hence no credential files are allowed to…
0
votes
1 answer

Is the Google Cloud Vision DOCUMENT_TEXT_DETECTION API configurable?

I want to extract structured text from PDF contracts with the Google Cloud Vision DOCUMENT_TEXT_DETECTION API. Is the service configurable? For example, can I set the minimum vertical blank space the system uses to split paragraphs?
-1
votes
1 answer

Google Cloud function - Document Ai error

I'm trying to write a Firebase cloud function that triggers when an image is uploaded to a specific bucket. It sends that image over to document ai to be processed by a custom processor and logs the return in Firestore database. I did the same thing…
-1
votes
1 answer

Can DocumentAI automate data extraction based on controlled vocabularies?

My organization's mission is to synthesise data from pds of research papers in social science. We have our own taxonomies of defined terms which we extract from each paper (e.g. World Bank Sector: Health, Education and so on). The trial version of…
-1
votes
1 answer

It's possible create a dataset in document ai processor and import documents via python API?

It's possible, to do the steps in the below guide, using the Python API? I saw some documentation about creating processors and training processors via Python API. But, none about creating the dataset and importing documents in the…
-1
votes
1 answer

Google Document AI facing issue with Table data generated

I am using attached image to scan and retrieve table using google cloud document AI, but I am getting attached text as output. Attached along with source code file as well. Output generated is not as expected as table contents are not generated…
vishal
  • 31
  • 5
-1
votes
1 answer

Authentication for Google Document AI's v1 API in Laravel

I am using v1 API to read text from image in a Laravel web app. But I have to generate tokens after they expire. curl -X POST \ -H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \ -H "Content-Type: application/json;…
-1
votes
2 answers

Google document AI

I have raised a request for Google invoice parser last week, but haven't received any response from them. Does anyone has experience in getting access from google? or any contact?
Asidhu
  • 11
-1
votes
3 answers

Ho can I Invoke GCP DocumentAI API from App Engine .NET service?

I have a .NET Core GCP App Engine service that need to use GCP Document AI API. Unfortunately there's no .netcore client to access Document AI API yet so I guess I'll need to access using an API Rest call. How I can get the access token to set the…
1 2 3
13
14