Class RecognitionResult

Class RecognitionResult

名称: Aspose.OCR 集合: Aspose.OCR.dll (25.4.0)

图像识别的结果。包含识别信息和结果出口方法的元素。

public class RecognitionResult

Inheritance

object RecognitionResult

继承人

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

Properties

FileName

完整的路径到文件。

public string FileName { get; set; }

财产价值

string

Image

获取或设置图像为PDF创建。

public byte[][,] Image { get; set; }

财产价值

byte [][,]

RecognitionAreasRectangles

接收直角协调。

public List<rectangle> RecognitionAreasRectangles { get; }

财产价值

List

RecognitionAreasText

获取列表识别结果的区域列表(直角)。

public List<string> RecognitionAreasText { get; }

财产价值

List < string >

RecognitionCharactersList

由识别算法找到的字符集,并安排在下降的概率顺序。

public List<char[]> RecognitionCharactersList { get; }

财产价值

List < char [ ]>

Remarks

符号系列 System.Char 具有最大概率和替代品。

RecognitionLinesResult

收到列表的识别结果与列表的行(直角)。

public List<recognitionresult.linesresult> RecognitionLinesResult { get; }

财产价值

List < RecognitionResult . LinesResult >

RecognitionText

得到认可结果在一个链条。

public string RecognitionText { get; set; }

财产价值

string

Skew

得到了滑角。

public float Skew { get; set; }

财产价值

float

Warnings

收到列表的警告信息描述非批判性错误出现在世代。

public List<string> Warnings { get; }

财产价值

List < string >

Methods

GetJson(博尔)

格式 JSON 序列与识别结果。

public string GetJson(bool isReadable = false)

Parameters

isReadable bool

决定JSON是否会是人类可读的。

Returns

string

识别结果作为JSON字符串。

GetKeywords()

从护照中获取关键字(测试模式,仅适用于美国和马达加斯加护照)。

public Dictionary<string, recognitionresult.linesresult=""> GetKeywords()

Returns

Dictionary < string , RecognitionResult . LinesResult >

用关键字作为一个关键字和LinesResult作为一个值的词典。

GetSpellCheckCorrectedText(SpellCheckLanguage, 字符串)

修正文本(取代错误的词语)。

public string GetSpellCheckCorrectedText(SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null)

Parameters

language SpellCheckLanguage

用字典。

dictionaryPath string

可选. 完整的路径到用户词典(频率词典)。字典文件格式:平板文本文件在 UTF-8 编码。Word 和 Word 频率按空间或选项卡分开。默认情况下,在第一个列中预期的单词和第二个列中的频率。每个单词频率对一个单独的行.A 线被定义为一个字符的序列,其次是线源(“\n”),货运回归(“\r”),或即时返回货物,随之而来的线源(“\r\n”)。每个字都应该在较低的情况下。

Returns

string

用替代词语的文本。

GetSpellCheckErrorList(SpellCheckLanguage, 字符串)

查找错误的单词与建议的输入文本的输入。

public List<spellcheckerror> GetSpellCheckErrorList(SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null)

Parameters

language SpellCheckLanguage

用字典。

dictionaryPath string

可选. 完整的路径到用户词典(频率词典)。字典文件格式:平板文本文件在 UTF-8 编码。Word 和 Word 频率按空间或选项卡分开。默认情况下,在第一个列中预期的单词和第二个列中的频率。每个单词频率对一个单独的行.A 线被定义为一个字符的序列,其次是线源(“\n”),货运回归(“\r”),或即时返回货物,随之而来的线源(“\r\n”)。每个字都应该在较低的情况下。

Returns

List < SpellCheckError >

列表 SpellCheckError 对象代表错误的单词,列表建议对每个错误的单词进行正确的错误,与编辑距离。

GetXml()

格式 XML 序列与识别结果。

public string GetXml()

Returns

string

识别结果作为一个XML序列序列。

Save(字符串, SaveFormat, bool, SpellCheckLanguage, 字符串, 字符串, PdfOptimizationMode)

将文档保存为平板文本、PDF或Microsoft Word文档。

public void Save(string fullFileName, SaveFormat saveFormat, bool applySpellingCorrection, SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

fullFileName string

带有存储识别路径的文件名在所选格式中获取结果。

saveFormat SaveFormat

文件格式(Docx、Txt、PDF、Xlsx、Rtf、Json、Xml)

applySpellingCorrection bool

设置正确修正错误的单词,如果您在您的认可结果中有这样一个。

language SpellCheckLanguage

spell check(可选)的词典。

dictionaryPath string

可选. 使用者字典的完整路径在 .txt 格式. 格式是 [字 - 空间 - 频率(数字)].示例: 23135851162\nthat 3400031103\n

embeddedFontPath string

可选. 完整的路径到用户字体。

optimizePdf PdfOptimizationMode

通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。

Save(序列, SaveFormat, 序列, PdfOptimizationMode)

将文档保存为平板文本、PDF或Microsoft Word文档。

public void Save(string fullFileName, SaveFormat saveFormat, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

fullFileName string

带有存储识别路径的文件名在所选格式中获取结果。

saveFormat SaveFormat

文件格式(Docx、Txt、PDF、Xlsx、Rtf、Json、Xml)

embeddedFontPath string

可选. 完整的路径到用户字体。

optimizePdf PdfOptimizationMode

通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。

Save(MemoryStream, SaveFormat, bool, SpellCheckLanguage, string, string, PdfOptimizationMode)

将文档保存为平板文本、PDF或Microsoft Word文档。

public void Save(MemoryStream stream, SaveFormat saveFormat, bool applySpellingCorrection, SpellCheckLanguage language = SpellCheckLanguage.Eng, string dictionaryPath = null, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

stream MemoryStream

MemoryStream for Saving Recognition 以所选择的格式获取。

saveFormat SaveFormat

文件格式(Docx、Txt、PDF)

applySpellingCorrection bool

设置正确修正错误的单词,如果您在您的认可结果中有这样一个。

language SpellCheckLanguage

spell check(可选)的词典。

dictionaryPath string

可选. 使用者字典的完整路径在 .txt 格式. 格式是 [字 - 空间 - 频率(数字)].示例: 23135851162\nthat 3400031103\n

embeddedFontPath string

可选. 完整的路径到用户字体。

optimizePdf PdfOptimizationMode

通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。

Save(MemoryStream, SaveFormat, 字符串, PdfOptimizationMode)

将文档保存为平板文本、PDF或Microsoft Word文档。

public void Save(MemoryStream stream, SaveFormat saveFormat, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

stream MemoryStream

MemoryStream for Saving Recognition 以所选择的格式获取。

saveFormat SaveFormat

文件格式(Docx、Txt、PDF)

embeddedFontPath string

可选. 完整的路径到用户字体。

optimizePdf PdfOptimizationMode

通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。

Operators

运营商 +(认可结果,认可结果)

完成已认可的碎片(线)的完整结果。

public static RecognitionResult operator +(RecognitionResult main, RecognitionResult part)

Parameters

main RecognitionResult

将合适的运营商添加的对象。

part RecognitionResult

正确的歌剧

Returns

RecognitionResult

左手演员</string,></recognitionresult.linesresult></char[]>

 中文