Class OcrEngine

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class OcrEngine
    extends java.lang.Object
    implements java.lang.AutoCloseable
    API for optical character recognition. Required licence feature(s): Ocr.
    • Constructor Summary

      Constructors 
      Constructor Description
      OcrEngine()
      Constructs OcrEngine with the given params.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes native resources held by the object.
      protected void finalize()  
      Page run​(ImageRef image)
      Recognize text in the given image.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OcrEngine

        public OcrEngine()
                  throws LicenseException
        Constructs OcrEngine with the given params.
        Throws:
        LicenseException - If license requirements for the API are not met
    • Method Detail

      • close

        public void close()
        Closes native resources held by the object.
        Specified by:
        close in interface java.lang.AutoCloseable
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable