Class OcrOutput

Class OcrOutput

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

Một lớp container để lưu trữ và quản lý kết quả hoạt động OCR.

public class OcrOutput : List<recognitionresult>, IList<recognitionresult>, ICollection<recognitionresult>, IList, ICollection, IReadOnlyList<recognitionresult>, IReadOnlyCollection<recognitionresult>, IEnumerable<recognitionresult>, IEnumerable

Inheritance

object List OcrOutput

Implements

IList , ICollection , IList , ICollection , IReadOnlyList , IReadOnlyCollection , IEnumerable , IEnumerable

Thành viên thừa kế

List.Add(RecognitionResult) , List.AddRange(IEnumerable) , List.AsReadOnly() , List.BinarySearch(int, int, RecognitionResult, IComparer?) , List.BinarySearch(RecognitionResult) , List.BinarySearch(RecognitionResult, IComparer?) , List.Clear() , List.Contains(RecognitionResult) , List.ConvertAll(Converter<recognitionresult, toutput="">) , List.CopyTo(RecognitionResult[]) , List.CopyTo(int, RecognitionResult[], int, int) , List.CopyTo(RecognitionResult[], int) , List.EnsureCapacity(int) , List.Exists(Predicate) , List.Find(Predicate) , List.FindAll(Predicate) , List.FindIndex(Predicate) , List.FindIndex(int, Predicate) , List.FindIndex(int, int, Predicate) , List.FindLast(Predicate) , List.FindLastIndex(Predicate) , List.FindLastIndex(int, Predicate) , List.FindLastIndex(int, int, Predicate) , List.ForEach(Action) , List.GetEnumerator() , List.GetRange(int, int) , List.Slice(int, int) , List.IndexOf(RecognitionResult) , List.IndexOf(RecognitionResult, int) , List.IndexOf(RecognitionResult, int, int) , List.Insert(int, RecognitionResult) , List.InsertRange(int, IEnumerable) , List.LastIndexOf(RecognitionResult) , List.LastIndexOf(RecognitionResult, int) , List.LastIndexOf(RecognitionResult, int, int) , List.Remove(RecognitionResult) , List.RemoveAll(Predicate) , List.RemoveAt(int) , List.RemoveRange(int, int) , List.Reverse() , List.Reverse(int, int) , List.Sort() , List.Sort(IComparer?) , List.Sort(int, int, IComparer?) , List.Sort(Comparison) , List.ToArray() , List.TrimExcess() , List.TrueForAll(Predicate) , List.Capacity , List.Count , List.this[int] , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

OcrOutput()

Bắt đầu một trường hợp mới của lớp Aspose.OCR.OcrOutput với một bộ sưu tập trống.Nhà xây dựng này kêu gọi nhà xây dựng lớp cơ sở bắt đầu một danh sách trống của Aspose.OCR.RecognitionResult.

public OcrOutput()

OcrOutput(Kết quả tìm kiếm cho “Recognition>, Lời bài hát OcrInput)

Bắt đầu một trường hợp mới của lớp Aspose.OCR.OcrOutput với một bộ sưu tập cụ thể của Aspose.OCR.RecognitionResult.Nhà xây dựng này tạo ra một Aspose.OCR.OcrOutput mới bằng cách sao chép các yếu tố từ bộ sưu tập được cung cấp.

public OcrOutput(IEnumerable<recognitionresult> collection, OcrInput input)

Parameters

collection IEnumerable < RecognitionResult >

Bộ sưu tập Aspose.OCR.RecognitionResult để bắt đầu danh sách với.

input OcrInput

Thu thập dữ liệu hình ảnh từ khách hàng.

OcrOutput(int)

Bắt đầu một trường hợp mới của lớp Aspose.OCR.OcrOutput với một khả năng ban đầu được chỉ định.Nhà sản xuất này tạo ra một Aspose.OCR.OcrOutput mới với một số yếu tố đã được phân bổ, tối ưu hóa hiệu suất khi kích thước được biết đến trước thời gian.

public OcrOutput(int capacity)

Parameters

capacity int

Số này đại diện cho số lượng tối đa các yếu tố mà danh sách có thể giữ trước khi tái tạo.

Methods

AddRange(Kết quả tìm kiếm cho “Recognition>)

Thêm các yếu tố của bộ sưu tập cụ thể vào cuối danh sách Aspose.OCR.OcrOutput.Phương pháp này vượt quá hành vi AddRange mặc định để thực hiện các hoạt động bổ sung, nếu cần thiết.

public void AddRange(IEnumerable<recognitionresult> collection)

Parameters

collection IEnumerable < RecognitionResult >

Bộ sưu tập Aspose.OCR.RecognitionResult để thêm.

Save(string, SaveFormat, string, PdfOptimizationMode)

Lưu tất cả kết quả nhận dạng vào một tệp.

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

Parameters

fullFileName string

Tên file với một con đường để tiết kiệm nhận dạng kết quả trong định dạng được chọn.

saveFormat SaveFormat

Định dạng tài liệu (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml, Epub).

embeddedFontPath string

Tùy chọn. đường đầy đủ đến font người dùng.

optimizePdf PdfOptimizationMode

Giảm kích thước tệp PDF bằng cách giảm chất lượng hình ảnh nền. theo mặc định, chất lượng hình ảnh ban đầu được bảo tồn.

Save(MemoryStream, SaveFormat, string, PdfOptimizationMode)

Lưu tất cả các kết quả nhận dạng vào một dòng bộ nhớ trong định dạng cụ thể.

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

Parameters

stream MemoryStream

MemoryStream để tiết kiệm nhận dạng kết quả trong định dạng được chọn.

saveFormat SaveFormat

Định dạng tài liệu (Docx, Txt, PDF, Xlsx, Rtf, Json, Xml, Epub).

embeddedFontPath string

Tùy chọn. đường đầy đủ đến font người dùng.

optimizePdf PdfOptimizationMode

Giảm kích thước tệp PDF bằng cách giảm chất lượng hình ảnh nền. theo mặc định, chất lượng hình ảnh ban đầu được bảo tồn.

SavePdf(string, string, PdfOptimizationMode)

Lưu tất cả các kết quả nhận dạng vào một tệp PDF có thể tìm kiếm, với hình ảnh ban đầu được thiết lập như nền.

public void SavePdf(string fullFileName, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

fullFileName string

Tên file với một con đường để tiết kiệm nhận dạng kết quả trong định dạng được chọn.

embeddedFontPath string

Tùy chọn. đường đầy đủ đến font người dùng.

optimizePdf PdfOptimizationMode

Giảm kích thước tệp PDF bằng cách giảm chất lượng hình ảnh nền. theo mặc định, chất lượng hình ảnh ban đầu được bảo tồn.

SavePdf(MemoryStream, string, PdfOptimizationMode)

Lưu tất cả các kết quả nhận dạng trong một tài liệu PDF có thể tìm kiếm trong bộ nhớ, bao gồm các hình ảnh ban đầu như nền.

public void SavePdf(MemoryStream stream, string embeddedFontPath = null, PdfOptimizationMode optimizePdf = PdfOptimizationMode.MAXIMUM_QUALITY)

Parameters

stream MemoryStream

MemoryStream để tiết kiệm nhận dạng kết quả trong định dạng được chọn.

embeddedFontPath string

Tùy chọn. đường đầy đủ đến font người dùng.

optimizePdf PdfOptimizationMode

Giảm kích thước tệp PDF bằng cách giảm chất lượng hình ảnh nền. theo mặc định, chất lượng hình ảnh ban đầu được bảo tồn.</recognitionresult,>

 Tiếng Việt