Class PreprocessingFilter

Class PreprocessingFilter

Nazwa przestrzeń: Aspose.OCR.Models.PreprocessingFilters Zgromadzenie: Aspose.OCR.dll (25.4.0)

Klasy podstawowe dla poleceń przetwarzania obrazu.

public class PreprocessingFilter : IEnumerable

Inheritance

object PreprocessingFilter

Implements

IEnumerable

Dziedziczeni członkowie

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

PreprocessingFilter()

public PreprocessingFilter()

Properties

Default

Kolekcja filtrów domyślnych zawiera filtr AutoSkew

public static PreprocessingFilter Default { get; }

Wartość nieruchomości

PreprocessingFilter

Empty

Kolekcja pustych filtrów

public static PreprocessingFilter Empty { get; }

Wartość nieruchomości

PreprocessingFilter

Methods

Add(PreprocessingFilter)

Dodaj nowy filtr do kolekcji, aby kontynuować wszystkie operacje.Konsekwencja w kolekcji.

public void Add(PreprocessingFilter filter)

Parameters

filter PreprocessingFilter

Nowe funkcje do dodania do listy filtrów.

AutoDenoising()

Umożliwia korzystanie z dodatkowej sieci nerwowej w celu poprawy obrazu - zmniejsza hałas.Przydatne dla obrazów ze skanowaniem artefaktów, zniekształcenia, punktów, flarów, gradientów, elementów obcych.

public static PreprocessingFilter AutoDenoising()

Returns

PreprocessingFilter

Obiekt AutoDenoisingFilter.

AutoDenoising(Rectangle)

Umożliwia korzystanie z dodatkowej sieci nerwowej w celu poprawy części obrazu - zmniejsza hałas.Przydatne dla obrazów ze skanowaniem artefaktów, zniekształcenia, punktów, flarów, gradientów, elementów obcych.

public static PreprocessingFilter AutoDenoising(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt AutoDenoisingFilter.

AutoDewarping()

Automatycznie koryguje zaburzenia geometryczne w obrazie.Bardzo intensywne zasoby!

public static PreprocessingFilter AutoDewarping()

Returns

PreprocessingFilter

Obiekt AutoDewarpingFilter.

AutoSkew()

Umożliwia automatyczną korektę obrazu.

public static PreprocessingFilter AutoSkew()

Returns

PreprocessingFilter

Obiekt AutoSkewFilter.

AutoSkew(Rectangle)

Umożliwia automatyczną korekcję części obrazu.

public static PreprocessingFilter AutoSkew(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt AutoSkewFilter.

Binarize()

Konwertuje obraz na czarno-biały.Obrazy binarne to obrazy, których piksele mają tylko dwie możliwe wartości intensywności.Zazwyczaj są one wyświetlane jako czarne i białe. numerycznie, dwa wartości są często 0 dla czarnego, a 255 dla białego.Obrazy binarne są wytwarzane przez automatyczne granice obrazu.

public static PreprocessingFilter Binarize()

Returns

PreprocessingFilter

Obiekt BinarizeFilter.

Binarize(Rectangle)

Konwertuje część obrazu na czarno-biały obraz.Obrazy binarne to obrazy, których piksele mają tylko dwie możliwe wartości intensywności.Zazwyczaj są one wyświetlane jako czarne i białe. numerycznie, dwa wartości są często 0 dla czarnego, a 255 dla białego.Obrazy binarne są wytwarzane przez automatyczne granice obrazu.

public static PreprocessingFilter Binarize(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt BinarizeFilter.

ContrastCorrectionFilter()

filtr korekcji kontrastu.

public static PreprocessingFilter ContrastCorrectionFilter()

Returns

PreprocessingFilter

Kontrastny obiekt filtracji.

ContrastCorrectionFilter(Rectangle)

Filtr korekcji kontrastu dla części obrazu.

public static PreprocessingFilter ContrastCorrectionFilter(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Kontrastny obiekt filtracji.

Dilate()

Dilacja dodaje pikseli do granic obiektów w obrazie.

public static PreprocessingFilter Dilate()

Returns

PreprocessingFilter

Obiekt filtracji.

Dilate(Rectangle)

Dylacja dodaje pikseli do granic obiektów w części obrazu.

public static PreprocessingFilter Dilate(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt filtracji.

GetEnumerator()

Do realizacji licznych interfejsów.

public IEnumerator GetEnumerator()

Returns

IEnumerator

Numerator

Invert()

Automatycznie odwraca kolory w obrazie dokumentu.

public static PreprocessingFilter Invert()

Returns

PreprocessingFilter

Obiekt InvertFilter

Invert(Rectangle)

Automatycznie odwraca kolory w części obrazu.

public static PreprocessingFilter Invert(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt InvertFilter

Median()

Średni filtr przechodzi przez każdy element obrazu i zastępuje każdy piksel medianami sąsiednich pikseli.

public static PreprocessingFilter Median()

Returns

PreprocessingFilter

Obiekt MedianFilter.

Median(Rectangle)

Średni filtr przechodzi przez każdy element części obrazu i zastępuje każdy piksel medianami sąsiednich pikseli.

public static PreprocessingFilter Median(Rectangle area)

Parameters

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt MedianFilter.

Resize(int, int, interpolacjaFilterType)

Rescale image - rozdzielczość obrazu w skali wyższej lub w skali dolnej.

public static PreprocessingFilter Resize(int width, int height, InterpolationFilterType type)

Parameters

width int

Nowa szerokość obrazu.

height int

Nowa wysokość obrazu.

type InterpolationFilterType

Aspose.OCR.Filter.InterpolacjaFilterTyp

Returns

PreprocessingFilter

Obiekty filtracji.

Resize(i int, int)

Rescale image - rozdzielczość obrazu w skali wyższej lub w skali dolnej.InterpolacjaFilterType = Lanczos8

public static PreprocessingFilter Resize(int width, int height)

Parameters

width int

Nowa szerokość obrazu.

height int

Nowa wysokość obrazu.

Returns

PreprocessingFilter

Obiekty filtracji.

Rotate(Floty)

Rotacja oryginalnego obrazu.

public static PreprocessingFilter Rotate(float angle)

Parameters

angle float

Źródło rotacji.Od 360 do 360

Returns

PreprocessingFilter

Obiekt RotateFilter.

Rotate(Floty, Rectangle)

Otocz część obrazu.

public static PreprocessingFilter Rotate(float angle, Rectangle area)

Parameters

angle float

Źródło rotacji.Od 360 do 360

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt RotateFilter.

Scale(Floty)

Rescale image - rozdzielczość obrazu w skali wyższej lub w skali dolnej.InterpolacjaFilterType = Lanczos8

public static PreprocessingFilter Scale(float ratio)

Parameters

ratio float

Wskaźnik skali. Zalecane od 0,1 do 1 do skrócenia. od 1 do 10 do powiększania.

Returns

PreprocessingFilter

Obiekt ScaleFilter.

Scale(Floty, InterpolacjaFilterType)

Rescale image - rozdzielczość obrazu w skali wyższej lub w skali dolnej.

public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)

Parameters

ratio float

Wskaźnik skali. Zalecane od 0,1 do 1 do skrócenia. od 1 do 10 do powiększania.

type InterpolationFilterType

Aspose.OCR.Filter.InterpolacjaFilterTyp

Returns

PreprocessingFilter

Obiekt ScaleFilter.

Threshold(Int)

Tworzenie obrazu binarnego opartego na ustawieniu wartości granicznej na intensywności pikseli oryginalnego obrazu.

public static PreprocessingFilter Threshold(int value)

Parameters

value int

Wartość max.

Returns

PreprocessingFilter

Obiekt BinarizeFilter.

Threshold(Rektangle, Rektangle)

Tworzenie części binarnej obrazu w oparciu o ustawienie wartości granicznej na intensywności pikseli oryginalnej części obrazu.

public static PreprocessingFilter Threshold(int value, Rectangle area)

Parameters

value int

Wartość max.

area Rectangle

Koordynacje części obrazu należy naprawić.

Returns

PreprocessingFilter

Obiekt BinarizeFilter.

ToGrayscale()

Konwertuje obraz na obraz grayscale.Grayscale obraz ma 256 poziomów światła w obrazie (0 do 255).

public static PreprocessingFilter ToGrayscale()

Returns

PreprocessingFilter

Obiekt GrayscaleFilter.

 Polski