Class PreprocessingFilter
Namespace: Aspose.OCR.Models.PreprocessingFilters
Assembly: Aspose.OCR.dll (25.1.0)
画像処理コマンドのベースクラスです。
public class PreprocessingFilter : IEnumerable
継承
実装
継承メンバー
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
コンストラクタ
PreprocessingFilter()
public PreprocessingFilter()
プロパティ
Default
デフォルトのフィルターコレクションにはAutoSkewフィルターが含まれています。
public static PreprocessingFilter Default { get; }
プロパティ値
Empty
空のフィルターコレクション
public static PreprocessingFilter Empty { get; }
プロパティ値
メソッド
Add(PreprocessingFilter)
新しいフィルターをコレクションに追加して、すべての操作を実行します。 コレクション内の一貫性が重要です。
public void Add(PreprocessingFilter filter)
パラメーター
filter
PreprocessingFilter
フィルターリストに追加する新しい操作。
AutoDenoising()
追加のニューラルネットワークを使用して画像を改善し、ノイズを減らします。 スキャンアーティファクト、歪み、スポット、フレア、グラデーション、異物を含む画像に役立ちます。
public static PreprocessingFilter AutoDenoising()
戻り値
AutoDenoisingFilterオブジェクト。
AutoDenoising(Rectangle)
画像の一部を改善するために追加のニューラルネットワークを使用してノイズを減らします。 スキャンアーティファクト、歪み、スポット、フレア、グラデーション、異物を含む画像に役立ちます。
public static PreprocessingFilter AutoDenoising(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
AutoDenoisingFilterオブジェクト。
AutoDewarping()
画像の幾何学的歪みを自動的に修正します。 非常にリソースを消費します!
public static PreprocessingFilter AutoDewarping()
戻り値
AutoDewarpingFilterオブジェクト。
AutoSkew()
画像の傾きを自動的に補正します。
public static PreprocessingFilter AutoSkew()
戻り値
AutoSkewFilterオブジェクト。
AutoSkew(Rectangle)
画像の一部の傾きを自動的に補正します。
public static PreprocessingFilter AutoSkew(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
AutoSkewFilterオブジェクト。
Binarize()
画像を白黒画像に変換します。 バイナリ画像は、ピクセルが2つの可能な強度値のみを持つ画像です。 通常、黒と白で表示されます。数値的には、2つの値は通常、黒が0、白が255です。 バイナリ画像は、画像を自動的にしきい値処理することによって生成されます。
public static PreprocessingFilter Binarize()
戻り値
BinarizeFilterオブジェクト。
Binarize(Rectangle)
画像の一部を白黒画像に変換します。 バイナリ画像は、ピクセルが2つの可能な強度値のみを持つ画像です。 通常、黒と白で表示されます。数値的には、2つの値は通常、黒が0、白が255です。 バイナリ画像は、画像を自動的にしきい値処理することによって生成されます。
public static PreprocessingFilter Binarize(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
BinarizeFilterオブジェクト。
ContrastCorrectionFilter()
コントラスト補正フィルター。
public static PreprocessingFilter ContrastCorrectionFilter()
戻り値
ContrastCorrectionFilterオブジェクト。
ContrastCorrectionFilter(Rectangle)
画像の部分に対するコントラスト補正フィルター。
public static PreprocessingFilter ContrastCorrectionFilter(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
ContrastCorrectionFilterオブジェクト。
Dilate()
膨張は、画像内のオブジェクトの境界にピクセルを追加します。
public static PreprocessingFilter Dilate()
戻り値
DilateFilterオブジェクト。
Dilate(Rectangle)
膨張は、画像の一部内のオブジェクトの境界にピクセルを追加します。
public static PreprocessingFilter Dilate(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
DilateFilterオブジェクト。
GetEnumerator()
IEnumerableインターフェースの実装です。
public IEnumerator GetEnumerator()
戻り値
IEnumerator
Invert()
ドキュメント画像内の色を自動的に反転させます。
public static PreprocessingFilter Invert()
戻り値
InvertFilterオブジェクト。
Invert(Rectangle)
画像の一部内の色を自動的に反転させます。
public static PreprocessingFilter Invert(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
InvertFilterオブジェクト。
Median()
中央値フィルターは、画像の各要素を通過し、各ピクセルをその隣接ピクセルの中央値で置き換えます。
public static PreprocessingFilter Median()
戻り値
MedianFilterオブジェクト。
Median(Rectangle)
中央値フィルターは、画像の部分の各要素を通過し、各ピクセルをその隣接ピクセルの中央値で置き換えます。
public static PreprocessingFilter Median(Rectangle area)
パラメーター
area
Rectangle
修正する画像の部分の座標。
戻り値
MedianFilterオブジェクト。
Resize(int, int, InterpolationFilterType)
画像をリスケールします - 画像解像度をアップスケールまたはダウンスケールします。
public static PreprocessingFilter Resize(int width, int height, InterpolationFilterType type)
パラメーター
width
int
画像の新しい幅。
height
int
画像の新しい高さ。
Aspose.OCR.Filters.InterpolationFilterType
戻り値
ResizeFilterオブジェクト。
Resize(int, int)
画像をリスケールします - 画像解像度をアップスケールまたはダウンスケールします。 InterpolationFilterType = Lanczos8
public static PreprocessingFilter Resize(int width, int height)
パラメーター
width
int
画像の新しい幅。
height
int
画像の新しい高さ。
戻り値
ResizeFilterオブジェクト。
Rotate(float)
元の画像を回転させます。
public static PreprocessingFilter Rotate(float angle)
パラメーター
angle
float
回転角度。
戻り値
RotateFilterオブジェクト。
Rotate(float, Rectangle)
画像の一部を回転させます。
public static PreprocessingFilter Rotate(float angle, Rectangle area)
パラメーター
angle
float
回転角度。
area
Rectangle
修正する画像の部分の座標。
戻り値
RotateFilterオブジェクト。
Scale(float)
画像をリスケールします - 画像解像度をアップスケールまたはダウンスケールします。 InterpolationFilterType = Lanczos8
public static PreprocessingFilter Scale(float ratio)
パラメーター
ratio
float
スケーリングファクター。
戻り値
ScaleFilterオブジェクト。
Scale(float, InterpolationFilterType)
画像をリスケールします - 画像解像度をアップスケールまたはダウンスケールします。
public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)
パラメーター
ratio
float
スケーリングファクター。
Aspose.OCR.Filters.InterpolationFilterType
戻り値
ScaleFilterオブジェクト。
Threshold(int)
元の画像のピクセル強度にしきい値を設定してバイナリ画像を作成します。
public static PreprocessingFilter Threshold(int value)
パラメーター
value
int
最大値。
戻り値
BinarizeFilterオブジェクト。
Threshold(int, Rectangle)
元の画像の部分のピクセル強度にしきい値を設定してバイナリ部分を作成します。
public static PreprocessingFilter Threshold(int value, Rectangle area)
パラメーター
value
int
最大値。
area
Rectangle
修正する画像の部分の座標。
戻り値
BinarizeFilterオブジェクト。
ToGrayscale()
画像をグレースケール画像に変換します。 グレースケール画像は、画像内に256レベルの光を持っています(0から255)。
public static PreprocessingFilter ToGrayscale()
戻り値
GrayscaleFilterオブジェクト。