3

I have the next document image:

When I try to convert the image to text, the result is this:

Top Text

Ref: Rad: Dte: Ddo:

Ejecutivo 76520400300 Banco de Bogotá Luz Adriana

Bottom Text

The problem is Google API recongnize it like two columns so, How can I config the Google API in order to obtain one column text?

My goal is obtain:

Top Text

Ref:Ejecutivo  Rad:  76520400300 Dte: Banco de Bogotá Ddo:Luz Adriana

Bottom Text
double-beep
  • 5,031
  • 17
  • 33
  • 41
Julian Solarte
  • 555
  • 6
  • 29

2 Answers2

2

Google team member responded that Document AI works better than Cloud Vision as per the update on the issue

arjunaraoc
  • 129
  • 5
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/late-answers/30561877) – MD. RAKIB HASAN Dec 14 '21 at 08:41
0

Cloud Vision API doesn't have a specific request property to specify the format used to read or sort the file's data. Instead, I think that the available workaround is to use the BoundingPoly and Vertex response properties, that display the coordinates related to each word contained in the image, in order to process the vertices data within your code logic and define the text that need to be grouped by columns and rows. You can take a look on this link which includes some response examples that include these properties.

In case this feature doesn't cover your current needs, you can use the Send Feedback button, located at the lower left and upper right corners of the service public documentation, as well as take a look the Issue Tracker tool in order to raise a Vision API feature request and notify to Google about this desired functionality.

Armin_SC
  • 2,130
  • 11
  • 15
  • [Archived page for the link](https://web.archive.org/web/20190107163537/https://cloud.google.com/vision/docs/ocr) in the previous answer about examples of Bounding poly and vertex responses – arjunaraoc Dec 05 '21 at 00:45