Class OSDResult

java.lang.Object
net.sourceforge.tess4j.OSDResult

public class OSDResult extends Object
Encapsulates Tesseract Orientation Script Detection (OSD) results.
  • Constructor Details

    • OSDResult

      public OSDResult()
      Default constructor.
    • OSDResult

      public OSDResult(int orientDeg, float orientConf, String scriptName, float scriptConf)
      Constructor.
      Parameters:
      orientDeg - the detected clockwise rotation of the input image in degrees (0, 90, 180, 270)
      orientConf - confidence in the orientation (15.0 is reasonably confident)
      scriptName - the name of the script
      scriptConf - confidence level in the script
  • Method Details

    • getOrientDeg

      public int getOrientDeg()
      Returns:
      the orientDeg
    • getOrientConf

      public float getOrientConf()
      Returns:
      the orientConf
    • getScriptName

      public String getScriptName()
      Returns:
      the scriptName
    • getScriptConf

      public float getScriptConf()
      Returns:
      the scriptConf
    • toString

      public String toString()
      Overrides:
      toString in class Object