Class ReceiptRecognitionSettings

Class ReceiptRecognitionSettings

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.1.0)

收据识别的设置。
包含允许自定义识别过程的元素。

public class ReceiptRecognitionSettings

继承

objectReceiptRecognitionSettings

派生

IDCardRecognitionSettings, InvoiceRecognitionSettings, PassportRecognitionSettings

继承成员

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

构造函数

ReceiptRecognitionSettings(Language)

使用完整的属性集初始化 Aspose.OCR.ReceiptRecognitionSettings 类的新实例。

public ReceiptRecognitionSettings(Language language)

参数

language Language

用于 OCR 的语言。

ReceiptRecognitionSettings()

使用默认属性集初始化 Aspose.OCR.ReceiptRecognitionSettings 类的新实例。

public ReceiptRecognitionSettings()

属性

AllowedCharacters

允许的字符集。确定识别结果中允许的字符类型。

public CharactersAllowedType AllowedCharacters { get; set; }

属性值

CharactersAllowedType

AutomaticColorInversion

检测具有白色文本的深色/黑色背景的图像,并自动为其选择特殊的 OCR 算法。

public bool AutomaticColorInversion { get; set; }

属性值

bool

IgnoredSymbols

为识别符号设置黑名单。

public string IgnoredSymbols { get; set; }

属性值

string

Language

获取或设置用于 OCR 的语言。

确定识别过程中使用的字母表。
默认支持多语言。

public Language Language { get; set; }

属性值

Language

ThreadsCount

获取或设置处理的线程数。
默认情况下,0 表示图像将使用与处理器数量相等的线程数进行处理。
ThreadsCount = 1 表示图像将在主线程中处理。

public int ThreadsCount { get; set; }

属性值

int

 中文