Class PreprocessingFilter

Class PreprocessingFilter

ชื่อพื้นที่: Aspose.OCR.Models.PreprocessingFilters การประกอบ: Aspose.OCR.dll (25.4.0)

คลาสพื้นฐานสําหรับคําสั่งการประมวลผลภาพ

public class PreprocessingFilter : IEnumerable

Inheritance

object PreprocessingFilter

Implements

IEnumerable

อนุญาโตตุลาการ

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

ชุดกรองแบบกําหนดเองประกอบด้วยกรอง AutoSkew

public static PreprocessingFilter Default { get; }

คุณสมบัติมูลค่า

PreprocessingFilter

Empty

คอลเลกชันกรองที่ว่างเปล่า

public static PreprocessingFilter Empty { get; }

คุณสมบัติมูลค่า

PreprocessingFilter

Methods

Add(PreprocessingFilter)

เพิ่มกรองใหม่ลงในคอลเลกชันเพื่อดําเนินการต่อการดําเนินงานทั้งหมดความสม่ําเสมอในเรื่องการรวบรวม

public void Add(PreprocessingFilter filter)

Parameters

filter PreprocessingFilter

ทํางานใหม่เพื่อเพิ่มไปยังรายการกรอง

AutoDenoising()

อนุญาตให้ใช้เครือข่ายประสาทเพิ่มเติมเพื่อปรับปรุงภาพ - ลดเสียงรบกวนมีประโยชน์สําหรับภาพที่มีวัตถุดิบสแกนการทําลายจุดระเบิด gradients องค์ประกอบภายนอก

public static PreprocessingFilter AutoDenoising()

Returns

PreprocessingFilter

AutoDenoisingFilter วัตถุ

AutoDenoising(Rectangle)

อนุญาตให้ใช้เครือข่ายประสาทเพิ่มเติมเพื่อปรับปรุงส่วนภาพ - ลดเสียงรบกวนมีประโยชน์สําหรับภาพที่มีวัตถุดิบสแกนการทําลายจุดระเบิด gradients องค์ประกอบภายนอก

public static PreprocessingFilter AutoDenoising(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

AutoDenoisingFilter วัตถุ

AutoDewarping()

อัตโนมัติแก้ไขความผิดปกติทางภูมิศาสตร์ในภาพมากแรงทรัพยากร!

public static PreprocessingFilter AutoDewarping()

Returns

PreprocessingFilter

AutoDewarpingFilter วัตถุ

AutoSkew()

ช่วยให้การแก้ไขภาพสกปรกอัตโนมัติ

public static PreprocessingFilter AutoSkew()

Returns

PreprocessingFilter

AutoSkewFilter วัตถุ

AutoSkew(Rectangle)

อนุญาตให้การแก้ไขชิ้นส่วนภาพอัตโนมัติ

public static PreprocessingFilter AutoSkew(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

AutoSkewFilter วัตถุ

Binarize()

แปลงภาพเป็นภาพสีดําและสีขาวภาพไบนารี่เป็นภาพที่มีพิกเซลมีค่าความเข้มที่สองเท่านั้นพวกเขามักจะแสดงเป็นสีดําและสีขาว หมายเลขสองค่ามักจะเป็น 0 สําหรับสีดําและ 255 สําหรับสีขาวภาพไบนารีจะถูกสร้างขึ้นโดยอัตโนมัติ จํากัด รูปภาพ

public static PreprocessingFilter Binarize()

Returns

PreprocessingFilter

BinarizeFilter วัตถุ

Binarize(Rectangle)

แปลงส่วนหนึ่งของภาพเป็นภาพสีดําและสีขาวภาพไบนารี่เป็นภาพที่มีพิกเซลมีค่าความเข้มที่สองเท่านั้นพวกเขามักจะแสดงเป็นสีดําและสีขาว หมายเลขสองค่ามักจะเป็น 0 สําหรับสีดําและ 255 สําหรับสีขาวภาพไบนารีจะถูกสร้างขึ้นโดยอัตโนมัติ จํากัด รูปภาพ

public static PreprocessingFilter Binarize(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

BinarizeFilter วัตถุ

ContrastCorrectionFilter()

ตัวกรองการแก้ไขข้อตกลง

public static PreprocessingFilter ContrastCorrectionFilter()

Returns

PreprocessingFilter

ตัวกรองตัวกรองตัวกรอง

ContrastCorrectionFilter(Rectangle)

ตัวกรองการแก้ไขข้อตกลงสําหรับส่วนของภาพ

public static PreprocessingFilter ContrastCorrectionFilter(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

ตัวกรองตัวกรองตัวกรอง

Dilate()

Dilation เพิ่มพิกเซลไปยังขอบของวัตถุในภาพ

public static PreprocessingFilter Dilate()

Returns

PreprocessingFilter

วัตถุกรอง

Dilate(Rectangle)

Dilation เพิ่มพิกเซลไปยังขอบของวัตถุในส่วนหนึ่งของภาพ

public static PreprocessingFilter Dilate(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

วัตถุกรอง

GetEnumerator()

สําหรับการสร้างอินเตอร์เฟซ IEnumarable

public IEnumerator GetEnumerator()

Returns

IEnumerator

หมายเลข

Invert()

อัตโนมัติเปลี่ยนสีในภาพเอกสาร

public static PreprocessingFilter Invert()

Returns

PreprocessingFilter

วัตถุ InvertFilter

Invert(Rectangle)

โดยอัตโนมัติเปลี่ยนสีในส่วนหนึ่งของภาพ

public static PreprocessingFilter Invert(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

วัตถุ InvertFilter

Median()

ตัวกรองกลางทํางานผ่านแต่ละองค์ประกอบของภาพและแทนที่แต่ละพิกเซลด้วยตัวกรองกลางของพิกเซลที่ใกล้เคียง

public static PreprocessingFilter Median()

Returns

PreprocessingFilter

วัตถุ MedianFilter

Median(Rectangle)

ตัวกรองกลางทํางานผ่านแต่ละองค์ประกอบของส่วนภาพและแทนที่แต่ละพิกเซลด้วยตัวกรองกลางของพิกเซลที่ใกล้เคียง

public static PreprocessingFilter Median(Rectangle area)

Parameters

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

วัตถุ MedianFilter

Resize(int, int, InterpolationFilterประเภท)

Rescale Image - ความละเอียดของภาพ Upscale หรือ Downscale

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

Parameters

width int

ความกว้างของภาพใหม่

height int

ความสูงใหม่ของภาพ

type InterpolationFilterType

Aspose.OCR.Filters.InterpolationFilterประเภท

Returns

PreprocessingFilter

วัตถุ ResizeFilter

Resize(int, int)

Rescale Image - ความละเอียดของภาพ Upscale หรือ DownscaleInterpolationFilterType = Lanczos8

public static PreprocessingFilter Resize(int width, int height)

Parameters

width int

ความกว้างของภาพใหม่

height int

ความสูงใหม่ของภาพ

Returns

PreprocessingFilter

วัตถุ ResizeFilter

Rotate(เฟอร์รี่)

รอยภาพเดิม

public static PreprocessingFilter Rotate(float angle)

Parameters

angle float

มุมของหมุนจาก -360 ถึง 360

Returns

PreprocessingFilter

วัตถุ RotateFilter

Rotate(ตุ๊กตา, ตุ๊กตา)

การหมุนส่วนหนึ่งของภาพ

public static PreprocessingFilter Rotate(float angle, Rectangle area)

Parameters

angle float

มุมของหมุนจาก -360 ถึง 360

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

วัตถุ RotateFilter

Scale(เฟอร์รี่)

Rescale Image - ความละเอียดของภาพ Upscale หรือ DownscaleInterpolationFilterType = Lanczos8

public static PreprocessingFilter Scale(float ratio)

Parameters

ratio float

ตัวปัจจัยการสแกน แนะนําจาก 0.1 ถึง 1 เพื่อลดลง จาก 1 ถึง 10 เพื่อขยาย

Returns

PreprocessingFilter

ScaleFilter วัตถุ

Scale(พื้นผิว, InterpolationFilterType)

Rescale Image - ความละเอียดของภาพ Upscale หรือ Downscale

public static PreprocessingFilter Scale(float ratio, InterpolationFilterType type)

Parameters

ratio float

ตัวปัจจัยการสแกน แนะนําจาก 0.1 ถึง 1 เพื่อลดลง จาก 1 ถึง 10 เพื่อขยาย

type InterpolationFilterType

Aspose.OCR.Filters.InterpolationFilterประเภท

Returns

PreprocessingFilter

ScaleFilter วัตถุ

Threshold(int)

สร้างภาพไบนารีบนพื้นฐานของการตั้งค่าค่าข้อ จํากัด บนความเข้มปิกเซลของภาพเดิม

public static PreprocessingFilter Threshold(int value)

Parameters

value int

ค่าใช้จ่าย max

Returns

PreprocessingFilter

BinarizeFilter วัตถุ

Threshold(int, ตรง)

สร้างส่วนไบนารีของภาพขึ้นอยู่กับการตั้งค่าค่าขอบเขตบนความเข้มปิกเซลของส่วนภาพเดิม

public static PreprocessingFilter Threshold(int value, Rectangle area)

Parameters

value int

ค่าใช้จ่าย max

area Rectangle

องค์ประกอบของส่วนของภาพที่จะได้รับการแก้ไข

Returns

PreprocessingFilter

BinarizeFilter วัตถุ

ToGrayscale()

แปลงภาพเป็นภาพสีเทาภาพ Grayscale มีระดับแสง 256 ในภาพ (0 ถึง 255).

public static PreprocessingFilter ToGrayscale()

Returns

PreprocessingFilter

GrayscaleFilterวัตถุ

 แบบไทย