Package net.kanjitomo

Class 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 coordinates
      java.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)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • IdentifiedCharacter

        public IdentifiedCharacter​(java.lang.String matchedCharacters,
                                   java.awt.Rectangle location,
                                   java.util.List<java.lang.Integer> scores)