0

enter image description here

How do I extract text from a receipt line by line with Google Vision?

I have tried matching with the Y coordinates but the result are not that ideal.

Is there other alternative to the approach?

Edith DIth
  • 13
  • 3
  • How about ? -> https://stackoverflow.com/questions/51972479/get-lines-and-paragraphs-not-symbols-from-google-vision-api-ocr-on-pdf/52086299 – InUser Jul 12 '20 at 08:07
  • @Inga890 Hi it didn't work, they close enough approach was using Y coordinates – Edith DIth Jul 12 '20 at 14:48

1 Answers1

0

You should use DOCUMENT_TEXT_DETECTION in the JSON request and in the fullTextAnnotation you will have \n

If you consider open sources, this git may be useful for line segmentation , line-segmentation-algorithm-to-gcp-vision

InUser
  • 1,138
  • 15
  • 22