Class FixedDewarpPolicy


  • public final class FixedDewarpPolicy
    extends DewarpPolicy
    Fixed dewarp policy. Dewarp height will be exactly as defined by its dewarpHeight. This policy is usually best for processor groups that use legacy BlinkOCR.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_DEWARP_HEIGHT
      Default dewarp height value used when using default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDewarpHeight()
      Returns the desired dewarp height (in pixels) as specified by this policy.
      protected void setNativePolicy​(long nativeProcessorContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_DEWARP_HEIGHT

        public static final int DEFAULT_DEWARP_HEIGHT
        Default dewarp height value used when using default constructor.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FixedDewarpPolicy

        public FixedDewarpPolicy()
      • FixedDewarpPolicy

        public FixedDewarpPolicy​(@IntRange(from=1L,to=65535L)
                                 int dewarpHeight)
        Parameters:
        dewarpHeight - Desired dewarp height in pixels. Note that if device does not support given dewarp height, the max supported by the device will be used.
    • Method Detail

      • setNativePolicy

        protected void setNativePolicy​(long nativeProcessorContext)
        Specified by:
        setNativePolicy in class DewarpPolicy
      • getDewarpHeight

        public int getDewarpHeight()
        Returns the desired dewarp height (in pixels) as specified by this policy.
        Returns:
        the desired dewarp height