Class OcrOutput
名称: Aspose.OCR 集合: Aspose.OCR.dll (25.4.0)
一个集装箱类存储和管理OCR操作的结果。
public class OcrOutput : List<recognitionresult>, IList<recognitionresult>, ICollection<recognitionresult>, IList, ICollection, IReadOnlyList<recognitionresult>, IReadOnlyCollection<recognitionresult>, IEnumerable<recognitionresult>, IEnumerable
Inheritance
Implements
IList
继承人
List
Constructors
OcrOutput()
启动 Aspose.OCR.OcrOutput 类的新例子,包含一个空白的收藏。该制造商呼吁基层制造商启动一个空白的列表 Aspose.OCR.RecognitionResult。
public OcrOutput()
OcrOutput(IEnumerable<认可结果>關於OcrInput)
启动 Aspose.OCR.OcrOutput 类的新例子,并提供 Aspose.OCR.RecognitionResult 的特定集合。该制造商通过从提供的收藏中复制元素来创建一个新的 Aspose.OCR.OcrOutput。
public OcrOutput(IEnumerable<recognitionresult> collection, OcrInput input)
Parameters
collection
IEnumerable
<
RecognitionResult
>
收藏 Aspose.OCR.RecognitionResult 以启动列表。
input
OcrInput
收集客户的图像数据。
OcrOutput(因特)
启动 Aspose.OCR.OcrOutput 类的新例子,具有指定的初始容量。该制造商创建一个新的 Aspose.OCR.OcrOutput 与预定数量的分配元素,优化性能,当尺寸是早已知的。
public OcrOutput(int capacity)
Parameters
capacity
int
列表的初始容量 这个数字代表列表可以保持的元素的最大数量,在重新编辑之前。
Methods
AddRange(IEnumerable<认可结果>)
将指定的集合的元素添加到 Aspose.OCR.OcrOutput 列表的结尾。这种方法超越了默认的 AddRange 行为,以便在需要时进行额外的操作。
public void AddRange(IEnumerable<recognitionresult> collection)
Parameters
collection
IEnumerable
<
RecognitionResult
>
收藏 Aspose.OCR.RecognitionResult 要添加。
Save(序列, SaveFormat, 序列, PdfOptimizationMode)
保存所有识别结果到一个文件。
public void Save(string fullFileName, SaveFormat saveFormat = SaveFormat.Text, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
Parameters
fullFileName
string
带有存储识别路径的文件名在所选格式中获取结果。
saveFormat
SaveFormat
文件格式(Docx、Txt、PDF、Xlsx、Rtf、Json、Xml、Epub)
embeddedFontPath
string
可选. 完整的路径到用户字体。
optimizePdf
PdfOptimizationMode
通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。
Save(MemoryStream, SaveFormat, 字符串, PdfOptimizationMode)
将所有识别结果存储在指定格式的内存流中。
public void Save(MemoryStream stream, SaveFormat saveFormat = SaveFormat.Text, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
Parameters
stream
MemoryStream
MemoryStream for Saving Recognition 以所选择的格式获取。
saveFormat
SaveFormat
文件格式(Docx、Txt、PDF、Xlsx、Rtf、Json、Xml、Epub)
embeddedFontPath
string
可选. 完整的路径到用户字体。
optimizePdf
PdfOptimizationMode
通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。
SavePdf(字符串,字符串, PdfOptimizationMode)
将所有识别结果保存到可搜索的 PDF 文件中,原创图像设置为背景。
public void SavePdf(string fullFileName, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
Parameters
fullFileName
string
带有存储识别路径的文件名在所选格式中获取结果。
embeddedFontPath
string
可选. 完整的路径到用户字体。
optimizePdf
PdfOptimizationMode
通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。
SavePdf(MemoryStream, 字符串, PdfOptimizationMode)
将所有识别结果存储在内存可搜索的 PDF 文档中,将原始图像作为背景。
public void SavePdf(MemoryStream stream, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)
Parameters
stream
MemoryStream
MemoryStream for Saving Recognition 以所选择的格式获取。
embeddedFontPath
string
可选. 完整的路径到用户字体。
optimizePdf
PdfOptimizationMode
通过降低背景图像质量来减少 PDF 文件大小. 默认情况下,原始图像质量保留。</recognitionresult,>