Class PreprocessingFilter

Class PreprocessingFilter

Tên không gian: Aspose.OCR.Models.PreprocessingFilters Tổng hợp: Aspose.OCR.dll (25.4.0)

Lớp cơ sở cho lệnh xử lý hình ảnh.

public class PreprocessingFilter : IEnumerable

Inheritance

object PreprocessingFilter

Implements

IEnumerable

Thành viên thừa kế

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

Bộ sưu tập bộ lọc mặc định chứa bộ lọc AutoSkew

public static PreprocessingFilter Default { get; }

Giá trị bất động sản

PreprocessingFilter

Empty

Bộ sưu tập bộ lọc trống

public static PreprocessingFilter Empty { get; }

Giá trị bất động sản

PreprocessingFilter

Methods

Add(PreprocessingFilter)

Thêm bộ lọc mới vào bộ sưu tập để tiến hành tất cả các hoạt động.Sự liên tục trong bộ sưu tập.

public void Add(PreprocessingFilter filter)

Parameters

filter PreprocessingFilter

Hoạt động mới để thêm vào danh sách lọc.

AutoDenoising()

Cho phép sử dụng một mạng thần kinh bổ sung để cải thiện hình ảnh - giảm tiếng ồn.hữu ích cho các hình ảnh với các tác phẩm quét, biến dạng, điểm, mảnh vỡ, gradients, các yếu tố nước ngoài.

public static PreprocessingFilter AutoDenoising()

Returns

PreprocessingFilter

AutoDenoisingFilter đối tượng.

AutoDenoising(Rectangle)

Cho phép sử dụng một mạng thần kinh bổ sung để cải thiện phần hình ảnh - giảm tiếng ồn.hữu ích cho các hình ảnh với các tác phẩm quét, biến dạng, điểm, mảnh vỡ, gradients, các yếu tố nước ngoài.

public static PreprocessingFilter AutoDenoising(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

AutoDenoisingFilter đối tượng.

AutoDewarping()

Tự động điều chỉnh các biến dạng địa phương trong hình ảnh.Nguồn tài nguyên cực kỳ mạnh mẽ!

public static PreprocessingFilter AutoDewarping()

Returns

PreprocessingFilter

AutoDewarpingFilter đối tượng.

AutoSkew()

Khả năng sửa chữa hình ảnh tự động.

public static PreprocessingFilter AutoSkew()

Returns

PreprocessingFilter

AutoSkewFilter đối tượng.

AutoSkew(Rectangle)

Khả năng tự động sửa chữa phần hình ảnh.

public static PreprocessingFilter AutoSkew(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

AutoSkewFilter đối tượng.

Binarize()

Chuyển đổi hình ảnh thành hình ảnh đen và trắng.Hình ảnh nhị phân là hình ảnh mà các pixel chỉ có hai giá trị cường độ có thể.Theo số, hai giá trị thường là 0 cho màu đen và 255 cho màu trắng.Hình ảnh nhị phân được tạo ra bằng cách tự động kéo dài một hình ảnh.

public static PreprocessingFilter Binarize()

Returns

PreprocessingFilter

BinarizeFilter đối tượng.

Binarize(Rectangle)

Chuyển đổi một phần của hình ảnh thành hình ảnh đen và trắng.Hình ảnh nhị phân là hình ảnh mà các pixel chỉ có hai giá trị cường độ có thể.Theo số, hai giá trị thường là 0 cho màu đen và 255 cho màu trắng.Hình ảnh nhị phân được tạo ra bằng cách tự động kéo dài một hình ảnh.

public static PreprocessingFilter Binarize(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

BinarizeFilter đối tượng.

ContrastCorrectionFilter()

Bộ lọc sửa chữa contrast.

public static PreprocessingFilter ContrastCorrectionFilter()

Returns

PreprocessingFilter

ContrastCorrectionFilter đối tượng

ContrastCorrectionFilter(Rectangle)

Bộ lọc điều chỉnh tương phản cho phần của hình ảnh.

public static PreprocessingFilter ContrastCorrectionFilter(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

ContrastCorrectionFilter đối tượng

Dilate()

Dilation thêm pixel vào các biên giới của các đối tượng trong một hình ảnh.

public static PreprocessingFilter Dilate()

Returns

PreprocessingFilter

Phân loại đối tượng.

Dilate(Rectangle)

Dilation thêm pixel vào các biên giới của các đối tượng trong một phần của hình ảnh.

public static PreprocessingFilter Dilate(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

Phân loại đối tượng.

GetEnumerator()

Đối với IEnumarable giao diện thực hiện.

public IEnumerator GetEnumerator()

Returns

IEnumerator

Đánh số

Invert()

Tự động chuyển đổi màu sắc trong hình ảnh tài liệu.

public static PreprocessingFilter Invert()

Returns

PreprocessingFilter

InvertFilter đối tượng

Invert(Rectangle)

Tự động đảo ngược màu sắc trong một phần của hình ảnh.

public static PreprocessingFilter Invert(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

InvertFilter đối tượng

Median()

Bộ lọc trung bình chạy qua mỗi yếu tố của hình ảnh và thay thế mỗi pixel với trung bình của các pixel lân cận của nó.

public static PreprocessingFilter Median()

Returns

PreprocessingFilter

MedianFilter đối tượng.

Median(Rectangle)

Bộ lọc trung bình chạy qua mỗi yếu tố của phần hình ảnh và thay thế mỗi pixel với trung bình của các pixel lân cận của nó.

public static PreprocessingFilter Median(Rectangle area)

Parameters

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

MedianFilter đối tượng.

Resize(int, int, InterpolationFilterType)

Rescale image - độ phân giải hình ảnh Upscale hoặc downscale.

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

Parameters

width int

Chiều rộng mới của hình ảnh.

height int

Độ cao mới của hình ảnh.

type InterpolationFilterType

Aspose.OCR.Filters.InterpolationFilterType

Returns

PreprocessingFilter

Phân loại đối tượng.

Resize(int, int)

Rescale image - độ phân giải hình ảnh Upscale hoặc downscale.InterpolationFilterType = Lanczos8

public static PreprocessingFilter Resize(int width, int height)

Parameters

width int

Chiều rộng mới của hình ảnh.

height int

Độ cao mới của hình ảnh.

Returns

PreprocessingFilter

Phân loại đối tượng.

Rotate(Sông)

Hình ảnh gốc xoay.

public static PreprocessingFilter Rotate(float angle)

Parameters

angle float

góc của xoay.Từ -360 đến 360

Returns

PreprocessingFilter

Cấu hình RotateFilter

Rotate(Sân bay, Rectangle)

xoay một phần của hình ảnh.

public static PreprocessingFilter Rotate(float angle, Rectangle area)

Parameters

angle float

góc của xoay.Từ -360 đến 360

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

Cấu hình RotateFilter

Scale(Sông)

Rescale image - độ phân giải hình ảnh Upscale hoặc downscale.InterpolationFilterType = Lanczos8

public static PreprocessingFilter Scale(float ratio)

Parameters

ratio float

yếu tố quy mô. Ưu đãi từ 0.1 đến 1 để rút ngắn. từ 1 đến 10 để mở rộng.

Returns

PreprocessingFilter

ScaleFilter đối tượng

Scale(Cây, InterpolationFilterType)

Rescale image - độ phân giải hình ảnh Upscale hoặc downscale.

public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)

Parameters

ratio float

yếu tố quy mô. Ưu đãi từ 0.1 đến 1 để rút ngắn. từ 1 đến 10 để mở rộng.

type InterpolationFilterType

Aspose.OCR.Filters.InterpolationFilterType

Returns

PreprocessingFilter

ScaleFilter đối tượng

Threshold(int)

Tạo một hình ảnh nhị phân dựa trên thiết lập một giá trị giới hạn trên cường độ pixel của hình ảnh ban đầu.

public static PreprocessingFilter Threshold(int value)

Parameters

value int

Giá trị max.

Returns

PreprocessingFilter

BinarizeFilter đối tượng.

Threshold(Nhãn hiệu: Rectangle)

Tạo một phần nhị phân của hình ảnh dựa trên thiết lập giá trị giới hạn trên cường độ pixel của phần hình ảnh ban đầu.

public static PreprocessingFilter Threshold(int value, Rectangle area)

Parameters

value int

Giá trị max.

area Rectangle

Các phối hợp của phần của hình ảnh để được sửa chữa.

Returns

PreprocessingFilter

BinarizeFilter đối tượng.

ToGrayscale()

Chuyển đổi hình ảnh thành hình ảnh grayscale.Hình ảnh Grayscale có 256 độ ánh sáng trong hình ảnh (0 đến 255).

public static PreprocessingFilter ToGrayscale()

Returns

PreprocessingFilter

GrayscaleFilter đối tượng.

 Tiếng Việt