Click or drag to resize

IOcrRule Interface

Defines a Regular Expression correction rule for OCR words.

Namespace:  Opait.Ocr.Api
Assembly:  Opait.Ocr (in Opait.Ocr.dll) Version: 1.3.3.0
Syntax
C#
public interface IOcrRule

The IOcrRule type exposes the following members.

Properties
  NameDescription
Public propertyDetect
Gets or sets the regular expression pattern to detect qualified words. If not specified, then apply the pattern to the entire page.
Public propertyIsActive
Gets or sets a flag to indicate whether the rule is active.
Public propertyIsSystem
Gets a flag to indicate whether the rule is defined system-wide and should not be edited.
Public propertyIsValid
Gets a flag to indicate whether the rule is valid.
Public propertyName
Gets or sets the name of the replacement rule.
Public propertyPattern
Gets or sets the regular expression pattern to detect replacement parts.
Public propertyReplace
Gets or sets the replacement text for the detected parts. If not specified, then replace matching characters with spaces.
Top
Methods
  NameDescription
Public methodApply
Applies the correction rule to the specified text.
Top
See Also