Class SimpleOcr

  • All Implemented Interfaces:

    
    public final class SimpleOcr
    
                        

    A SimpleOcr can read characters out of an image containing a single line of text.

    It does so by splitting the image into sub-images representing individual text elements, and matching the sub-images against the given referenceImages.

    Sub-images are often individual characters, but sometimes several characters can be grouped together due to kerning. For instance, a lowercase letter following an uppercase T ou V can be part of a single sub-image (Te, To, Va...).

    The given textDetector defines pixels that are considered part of the text.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String recognizeText(BufferedImage image) Infers text from the given image based on the referenceImages of known characters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait