LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
PreprocessPageCommands Property
See Also 
Leadtools.Forms.Ocr Namespace > IOcrAutoRecognizeManager Interface : PreprocessPageCommands Property



The PreprocessPageCommands Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

Gets a list of the auto-preprocess commands to perform on each document page prior to recognition.

Syntax

Visual Basic (Declaration) 
ReadOnly Property PreprocessPageCommands As IList(Of OcrAutoPreprocessPageCommand)
Visual Basic (Usage)Copy Code
Dim instance As IOcrAutoRecognizeManager
Dim value As IList(Of OcrAutoPreprocessPageCommand)
 
value = instance.PreprocessPageCommands
C# 
IList<OcrAutoPreprocessPageCommand> PreprocessPageCommands {get;}
C++/CLI 
property IList<OcrAutoPreprocessPageCommand>^ PreprocessPageCommands {
   IList<OcrAutoPreprocessPageCommand>^ get();
}

Property Value

A list of OcrAutoPreprocessPageCommand commands to perform on each document page prior to recognition. Default value is an array of on item (OcrAutoPreprocessPageCommand.Deskew).

Example

For an example, refer to IOcrAutoRecognizeManager.

Remarks

The IOcrAutoRecognizeManager interface also has the following options to use with the Run, IOcrAutoRecognizeManager.RunJob and IOcrAutoRecognizeManager.RunJobAsync methods:

Option Description
IOcrAutoRecognizeManager.MaximumPagesBeforeLtd

Used to add support for converting a document with unlimited number of pages. An OCR recognition operation on a document that contains a large amount of pages (10 and more) might result in an out of memory error. All of the LEADTOOLS OCR engines supports saving the intermediate recognition results to a temporary LTD file (DocumentFormat.LTD). The result of subsequent pages will be appended to this temporary file. When all the pages of the document have been recognized, the engine will convert the temporary LTD file to the desired output format. The IOcrAutoRecognizeManager.MaximumPagesBeforeLtd property defines the maximum number of pages processed as a whole. For example, if the original document has 20 pages and the value of this property is 8, the engine will recognize the first 8 pages and saves the result to a temporary file, recognizes the second 8 pages and append the results, and finally, recognize the last 4 pages and convert the temporary document to the final format.

IOcrAutoRecognizeManager.PreprocessPageCommands

Holds an array of OcrAutoPreprocessPageCommand items to control what auto-preprocess operation to perform on each page document prior to recognition.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

PreprocessPageCommands requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features