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