(Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.
(Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.
Reads hOCR output from Tesseract.
This doesn't handle hOCR in general. It only handles Tesseract's hOCR output.
Usage:
val parser = new HocrParser(input) parser.foreach { line => line.foreach { word => System.out.println(s"Word ${word.text} at (${word.boundingBox.x}, ${word.boundingBox.y})") } }