Class

com.johnsnowlabs.nlp.util.io

OcrHelper

Related Doc: package io

Permalink

class OcrHelper extends ImageProcessing with Serializable

Linear Supertypes
Serializable, ImageProcessing, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OcrHelper
  2. Serializable
  3. ImageProcessing
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OcrHelper()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def binarize(bi: BufferedImage): BufferedImage

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def convertToGrayScale(img: BufferedImage): BufferedImage

    Permalink
    Attributes
    protected
    Definition Classes
    ImageProcessing
  8. def correctSkew(image: BufferedImage, angle: Double, resolution: Double): BufferedImage

    Permalink
    Attributes
    protected
    Definition Classes
    ImageProcessing
  9. def createDataset(spark: SparkSession, inputPath: String): Dataset[OcrRow]

    Permalink
  10. def createMap(inputPath: String): Map[String, String]

    Permalink
  11. def dumpImage(bi: BufferedImage, filename: String): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    ImageProcessing
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def erode(bi: BufferedImage, kernelSize: Int): BufferedImage

    Permalink
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fromSigned(integer: Int): Byte

    Permalink
  17. def fromUnsigned(byte: Byte): Int

    Permalink
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getEngineMode: Int

    Permalink
  20. def getFallbackMethod: Boolean

    Permalink
  21. def getMinSizeBeforeFallback: Int

    Permalink
  22. def getPageIteratorLevel: Int

    Permalink
  23. def getPageSegMode: Int

    Permalink
  24. def getPreferredMethod: String

    Permalink
  25. def getSplitPages: Boolean

    Permalink
  26. def getSplitRegions: Boolean

    Permalink
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def reScaleImage(image: PlanarImage, factor: Float): BufferedImage

    Permalink
  33. var scalingFactor: Option[Float]

    Permalink
  34. def setAutomaticSkewCorrection(useIt: Boolean, halfAngle: Double = 5.0, resolution: Double = 1.0): Unit

    Permalink
  35. def setEngineMode(mode: Int): Unit

    Permalink
  36. def setFallbackMethod(value: Boolean): Unit

    Permalink
  37. def setMinSizeBeforeFallback(value: Int): Unit

    Permalink
  38. def setPageIteratorLevel(level: Int): Unit

    Permalink
  39. def setPageSegMode(mode: Int): Unit

    Permalink
  40. def setPreferredMethod(value: String): Unit

    Permalink
  41. def setScalingFactor(factor: Float): Unit

    Permalink
  42. def setSplitPages(value: Boolean): Unit

    Permalink
  43. def setSplitRegions(value: Boolean): Unit

    Permalink
  44. def signedByte2UnsignedInt(byte: Byte): Int

    Permalink
    Definition Classes
    ImageProcessing
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  46. def thresholdAndInvert(bi: BufferedImage, threshold: Int, maxVal: Int): BufferedImage

    Permalink
    Attributes
    protected
    Definition Classes
    ImageProcessing
  47. def toBufferedImage(img: Image): BufferedImage

    Permalink
    Attributes
    protected
    Definition Classes
    ImageProcessing
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. def unsignedInt2signedByte(inte: Int): Byte

    Permalink
    Definition Classes
    ImageProcessing
  50. def useErosion(useIt: Boolean, kSize: Int = 2, kernelShape: Int = Kernels.SQUARED): Unit

    Permalink
  51. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from ImageProcessing

Inherited from AnyRef

Inherited from Any

Ungrouped