1

I was learning about the google document and I need it for invoice ocr. I've used the given java code and tried to get extracted text from my respective document. But I want to get the json output and what if this document ai doesn't provide the correct result so what can i do for that ?

I've tried the given JAVA code for Process documents by using client libraries (JAVA) and got the extracted output in my eclipse result window. 1.How to get that output in json format 2.How to get the correct or improve the accuracy of output if the extracted data is not correct or some of the data isn't correct

  • Could you try this [code](https://cloud.google.com/document-ai/docs/handle-response#code_samples_2) for your requirement? For detailed information on output produced by processors you can refer to this [document](https://cloud.google.com/document-ai/docs/output#processor_Invoice%20Parser). Let me know if it's helpful or not? – Prajna Rai T Apr 05 '23 at 15:55
  • Hi @DushyantAneja, Did the above comment help you? – Prajna Rai T Apr 06 '23 at 14:01

1 Answers1

0

For your two main questions:

  1. Get Document output in JSON format.

  2. Verify or Improve the results of the processor

    • You can use Human-in-the-Loop to send documents to a Human Review team based on the confidence value.
    • You can use Uptraining to create custom versions of a supported processor with additional training data to improve accuracy or extract custom fields.

I recommend checking out the videos and labs and the Overview listed in the documentation for introductions to the concepts/features of Document AI.

Holt Skinner
  • 1,692
  • 1
  • 8
  • 21