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 getIncludeConfidence: Boolean

    Permalink
  22. def getMinSizeBeforeFallback: Int

    Permalink
  23. def getPageIteratorLevel: Int

    Permalink
  24. def getPageSegMode: Int

    Permalink
  25. def getPreferredMethod: String

    Permalink
  26. def getSplitPages: Boolean

    Permalink
  27. def getSplitRegions: Boolean

    Permalink
  28. def hashCode(): Int

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

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

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

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

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

    Permalink
  34. var scalingFactor: Option[Float]

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

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

    Permalink
  37. def setEstimateNoise(noiseMethod: String): Unit

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

    Permalink
  39. def setIncludeConfidence(value: Boolean): Unit

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    ImageProcessing
  48. def stdev(histogram: Array[Int]): Double

    Permalink
  49. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

    Permalink
  55. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. 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