OcrOutput

OcrOutput class

A container class to store and manage the results of OCR operations.

The OcrOutput type exposes the following members:

Constructors

NameDescription
OcrOutput()Initializes a new instance of the OcrOutput class with an empty collection.
This constructor calls the base class constructor to initialize an empty list of RecognitionResult.
OcrOutput(collection, input)Initializes a new instance of the OcrOutput class
OcrOutput(capacity)Initializes a new instance of the OcrOutput class

Methods

NameDescription
save_pdf(full_file_name, embedded_font_path, optimize_pdf)Save all recognition results into a searchable PDF file, with the original images set as the background.
save_pdf(full_file_name)Save all recognition results into a searchable PDF file, with the original images set as the background.
save_pdf(stream)Save all recognition results into an in-memory searchable PDF document, embedding the original images as the background.
save_pdf(stream, embedded_font_path, optimize_pdf)Save all recognition results into an in-memory searchable PDF document, embedding the original images as the background.
save(full_file_name, save_format, embedded_font_path, optimize_pdf)Save all recognition result to a file.
save(full_file_name, save_format)Save all recognition result to a file.
save(stream, save_format)Save all recognition results to a memory stream in the specified format.
save(stream, save_format, embedded_font_path, optimize_pdf)Save all recognition results to a memory stream in the specified format.
add_range(collection)Adds the elements of the specified collection to the end of the OcrOutput list.
This method overrides the default AddRange behavior to perform additional operations, if needed.
get_table_data()Returns structured table data extracted from all recognized pages.
Useful if the entire page is one table.

See Also