1

Iam currently using google OCR Api. I can get coordinate points for every block.

My question is how to get coordinate points for every line.

The below link describes how to extract lines from paragraph.

Get Lines and Paragraphs, not symbols from Google Vision API OCR on PDF

Amarnath R
  • 973
  • 3
  • 14
  • 33

1 Answers1

-1

Are you asking how to get the bounding boxes for each line you get from your linked StackOverflow question?

If so, I'd suggest you save the top- and bottom-left coordinates of the first word in each line and the top- and bottom-right coordinates of the last word in each line. This tuple then represents the box for every line in your file.

Patrick_Weber
  • 120
  • 1
  • 9