Skip to main content
This object allows you to tune the recognition parameters of the text. These parameters are used in Document Definitions and can be set through the AsTextParams method of the RecognitionParams object.

Properties

Name

Type

Description

AdjustPosition

Boolean

Specifies whether recognizer should look for the best position for the text block on document image.

CaseRecognitionMode

CaseRecognitionModeEnum

Specifies the mode of letter case recognition.

CellsCount

Integer

Specifies the number of character cells for a recognized block. This property is valid only for the handprint recognition. It has sense only for the field marking types (the FieldMarkingType property) that imply splitting the text into cells. The value of this property must be a positive number. The property can also be set to -1, which means that the number of cells should not be changed.

ErrorHighlightLevel

ErrorHighlightLevelEnum

Specifies the confidence level at which a character in recognized text is marked as uncertainly recognized (the ICharParams::IsSuspicious property is set to TRUE for such character). The name of the property reflects the fact that the uncertain characters are highlighted with background color in the ABBYY FlexiCapture document window.

FieldMarkingType

FieldMarkingTypeEnum

Specifies the type of marking around letters (for example, underline, frame, box, etc.). This property is valid only for the handprint recognition.

Note: For correct handprint recognition use CellsCount property that allows you to set the number of character cells for a recognized block.

ImageProcessingParams

ImageProcessingParams

Specifies the parameters of image preprocessing for the text block.

Note: The property returns a constant object. To modify the value of the property, you must first receive an intermediate ImageProcessingParams object with the help of the IEngine::CreateImageProcessingParams, change the necessary parameters, and then assign this object to the property.

Language

Language

Specifies the text language.

Note: The property returns a constant object. To modify the value of the property, you must first receive an intermediate Language object using the methods of the TextRecognitionParams object, change the necessary parameters, and then assign this object to the property.

MarkingRegion

Region, read-only

Contains the text marking region.

OneLinePerBlock

Boolean

This property set to TRUE tells ABBYY FlexiCapture SDK to presume that the text in block to which the current TextRecognitionParams object belongs contains no more than one text line.

OneWordPerLine

Boolean

This property set to TRUE tells ABBYY FlexiCapture SDK to presume that no text line may contain more than one word, so the lines of text will be recognized as a single word.

TextType

Integer

Specifies possible types of the text to be recognized as an OR superposition of TextTypeEnum constants.

UserPatternsFile

String

Contains the full path to a file of the user pattern used for recognition. If the value of this property is not empty, information from the user pattern file will be used during recognition.

WritingStyle

LanguageIdEnum

Specifies the writing style (defined by locale).

Examples of various numeral writing styles

– Russian two

– American two

– “ordinary” five, can occur in any style

– Japanese five

– Russian one

– German one

– “ordinary” nine, can occur in any style

– Czech nine with the ring on the right

– American nine without the “hook” at the bottom

Methods

Output parameter

This object is the output parameter of the AsTextParams method of the RecognitionParams object.

See also

RecognitionParams Setting Up Recognition Languages Working with Properties