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 drawRectanglesDataset(spark: SparkSession, dataset: Dataset[_], filenameCol: String = "filename", pagenumCol: String = "pagenum", coordinatesCol: String = "coordinates", outputLocation: String = "./highlighted/", outputSuffix: String = "_draw"): Unit

    Permalink
  12. def drawRectanglesToFile(inputPath: String, coordinates: List[Coordinate], outputPath: String): Unit

    Permalink
  13. def drawRectanglesToFile(inputPath: String, coordinates: Seq[Coordinate], outputPath: String): Unit

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

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

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

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

    Permalink
  18. def finalize(): Unit

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

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

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

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

    Permalink
  23. def getFallbackMethod: Boolean

    Permalink
  24. def getIncludeConfidence: Boolean

    Permalink
  25. def getMinSizeBeforeFallback: Int

    Permalink
  26. def getPageIteratorLevel: Int

    Permalink
  27. def getPageSegMode: Int

    Permalink
  28. def getPreferredMethod: String

    Permalink
  29. def getSplitPages: Boolean

    Permalink
  30. def getSplitRegions: Boolean

    Permalink
  31. def hashCode(): Int

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

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

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

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

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

    Permalink
  37. var scalingFactor: Option[Float]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
  58. final def wait(): Unit

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

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