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