> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TextRecognitionParams Object (ITextRecognitionParams Interface)

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**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognitionparams-astextparams.md) method of the [**RecognitionParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognitionparams.md) object.

## Properties

<table width="100%"><thead><tr><th>**Name**</th><th>**Type**</th><th>**Description**</th></tr></thead><tbody><tr><td>**AdjustPosition**</td><td>[**Boolean**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md)</td><td>Specifies whether recognizer should look for the best position for the text block on document image.</td></tr><tr><td>**CaseRecognitionMode**</td><td>[**CaseRecognitionModeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/caserecognitionmodeenum.md)</td><td>Specifies the mode of letter case recognition.</td></tr><tr><td>**CellsCount**</td><td>[**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md)</td><td>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.</td></tr><tr><td>**ErrorHighlightLevel**</td><td>[**ErrorHighlightLevelEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorhighlightlevelenum.md)</td><td>Specifies the confidence level at which a character in recognized text is marked as uncertainly recognized (the [**ICharParams::IsSuspicious**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/charparams.md#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.</td></tr><tr><td>**FieldMarkingType**</td><td>[**FieldMarkingTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fieldmarkingtypeenum.md)</td><td>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.</td></tr><tr><td>**ImageProcessingParams**</td><td>[**ImageProcessingParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageprocessingparams.md)</td><td>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**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageprocessingparams.md) object with the help of the [**IEngine::CreateImageProcessingParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-createxxx.md), change the necessary parameters, and then assign this object to the property.</td></tr><tr><td>**Language**</td><td>[**Language**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language.md)</td><td>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**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/language.md) object using the methods of the **TextRecognitionParams** object, change the necessary parameters, and then assign this object to the property.</td></tr><tr><td>**MarkingRegion**</td><td>[**Region**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/region.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)</td><td>Contains the text marking region.</td></tr><tr><td>**OneLinePerBlock**</td><td>[**Boolean**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md)</td><td>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.</td></tr><tr><td>**OneWordPerLine**</td><td>[**Boolean**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md)</td><td>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.</td></tr><tr><td>**TextType**</td><td>[**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md)</td><td>Specifies possible types of the text to be recognized as an OR superposition of [**TextTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/texttypeenum.md) constants.</td></tr><tr><td>**UserPatternsFile**</td><td>[**String**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md)</td><td>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.</td></tr><tr><td>**WritingStyle**</td><td>[**LanguageIdEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/languageidenum.md)</td><td>Specifies the writing style (defined by locale).<details><summary>Examples of various numeral writing styles</summary><table width="100%"><tbody><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_1.gif?s=86c1e8c11cfd8885c49d82574e6d2915)</td><td>– Russian two</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_2.gif?s=6720b71d4701b808714ce8460ddd87d7)</td><td>– American two</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_3.gif?s=74d459b1adcff082a2f07021ed93e1bd)</td><td>– "ordinary" five, can occur in any style</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_4.gif?s=bb7e6237bf9fbefa46f5864e3f99b6b6)</td><td>– Japanese five</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_5.gif?s=20881d31f178b149b356573c15c7a201)</td><td>– Russian one</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_6.gif?s=9d5568e181a623dd63c850c50210f718)</td><td>– German one</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_7.gif?s=fe4d29abe5d7928223991e663e7d6c8f)</td><td>– "ordinary" nine, can occur in any style</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_8.gif?s=9d3eb48b232b11eeac2599273011fc97)</td><td>– Czech nine with the ring on the right</td></tr><tr><td>![](https://mintcdn.com/abbyy/DUHPkwoM_QL6XAR5/images/flexi-capture/sdk/WritingStyle_9.gif?s=cdda3c451027a395bbd8ee974826e516)</td><td>– American nine without the "hook" at the bottom</td></tr></tbody></table></details></td></tr></tbody></table>

## Methods

| **Name** | **Description** |
| - | - |
| [**CreateEmbeddedLanguage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguage.md) | Creates a recognition language from an existing one. This language can then be assigned to the **Language** property. |
| [**CreateEmbeddedLanguageByDataType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textrecognitionparams-createembeddedlanguagebydatatype.md) | Creates a special recognition language, which can be used for recognition of the specified field value type. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/TextRecognitionParams.gif?s=772add3ff77839b5e23fe9bf3b92dc07)

## Output parameter

This object is the output parameter of the [**AsTextParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognitionparams-astextparams.md) method of the [**RecognitionParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognitionparams.md) object.

## See also

[**RecognitionParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognitionparams.md)

[Setting Up Recognition Languages](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/settinguprecognitionlanguages.md)

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
