Package net.kanjitomo
Class IdentifiedCharacter
- java.lang.Object
-
- net.kanjitomo.IdentifiedCharacter
-
public class IdentifiedCharacter extends java.lang.Object
OCR results for a single target character
-
-
Field Summary
Fields Modifier and Type Field Description java.awt.Rectangle
location
Location of the character in target image's coordinatesjava.lang.String
referenceCharacters
List of reference characters that match the target character best, ordered by OCR score (first character is the closest match).java.util.List<java.lang.Integer>
scores
OCR scores for each reference character.
-
Constructor Summary
Constructors Constructor Description IdentifiedCharacter(java.lang.String matchedCharacters, java.awt.Rectangle location, java.util.List<java.lang.Integer> scores)
-
-
-
Field Detail
-
referenceCharacters
public final java.lang.String referenceCharacters
List of reference characters that match the target character best, ordered by OCR score (first character is the closest match).
-
scores
public final java.util.List<java.lang.Integer> scores
OCR scores for each reference character. Same order as in referenceCharacters. Higher score is better but reference characters might have been re-ordered if first match didn't result in a valid dictionary word.
-
location
public final java.awt.Rectangle location
Location of the character in target image's coordinates
-
-