Ejemplo n.º 1
0
 public Text(BufferedImage image, Letter letterInformation) {
   this.letterInfo = letterInformation;
   this.image = image;
   linePositions = OCRUtilities.rowPositions(image, letterInformation.getSmallestSizeLetter());
   createMap();
   populateMap();
 }
Ejemplo n.º 2
0
 private void populateMap() {
   for (Integer row : linePositions) {
     map.put(
         row,
         OCRUtilities.wordsPositions(
             image, row, letterInfo.getLetterSize(), letterInfo.getSpaceGap()));
   }
 }