Class TextMapper

java.lang.Object
com.nefrock.edgeocr.TextMapper

public abstract class TextMapper extends Object
テキスト検出結果を変更するためのクラスです。よくブレる文字の修正、または検出結果から不要な 文字を削除するために使用します。
このクラスを継承して、applyメソッドを実装してください。
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
    apply(Text text)
    テキスト検出結果を変更するためのメソッドです。
    このメソッドをオーバーライドして、マッピング処理を実装してください。Textクラスの情報を 元に、文字列を変更することができます。

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TextMapper

      public TextMapper()
  • Method Details

    • apply

      public abstract String apply(Text text)
      テキスト検出結果を変更するためのメソッドです。
      このメソッドをオーバーライドして、マッピング処理を実装してください。Textクラスの情報を 元に、文字列を変更することができます。
      Parameters:
      text - テキスト検出結果
      Returns:
      変更後の文字列