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



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

The type of the page's Leadtools.RasterImage to get.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Enum OcrPageType 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As OcrPageType
C# 
[SerializableAttribute()]
public enum OcrPageType : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
[SerializableAttribute()]
public enum class OcrPageType : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
Current

The current image, this image has the same properties as the original image used to create the page.

Processing

The processing image is created internally by the OCR engine and is passed to the zoning and recognition routines. This image is always black/white with uniform resolution.

Example

This example will add a colored 24 bits/pixel image to the OCR engine, then gets the current and processing version of it and show their properties.

Remarks

Each IOcrPage contains two versions of the image used to create it: an original (current) and an optional processing version. The processing version usually black/white and has uniform resolution (if the original image is FAX for example) and it gets passed to the internal OCR engine during the zoning and recognition process. The AutoPreprocess method also uses the B/W image to determine if the page is inverted, skewed or has an orientation; however, it applies the correction to both the current and processing images.

You can use IOcrPage.GetRasterImage(OcrPageType) to get a copy of either of these images.

You cannot set the processing image of a page; it is created automatically by the engine. This is why there is no IOcrPage.SetRasterImage(OcrPageType pageType) method.

If the original image is black and white and has uniform vertical and horizontal resolution, then the engine will not create a processing image, in other words, IOcrPage.GetRasterImage(OcrPageType.Current) and IOcrPage.GetRasterImage(OcrPageType.Processing) will return identical Leadtools.RasterImage objects.

If the original image has different horizontal and vertical resolution, such as a FAX image, the processing page will be have be resized to have uniform resolution.

The LEADTOOLS C# and VB .NET Main OCR demos (Examples\DotNet\CS\OcrMainDemo and Examples\DotNet\VB\OcrMainDemo) have an option in the page menu to toggle between showing the current (default) or processing image of each page.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Forms.Ocr.OcrPageType

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

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