CreateEmbeddedLanguageByDataType Method of the TextRecognitionParams Object
This method creates a special recognition language, which can be used for recognition of the specified field value type.
It is not always convenient to specify the type of field value (IFieldDefinition::ValueType) as this restricts field values. E.g. if a user enters incorrect data to such field, this will produce an error. To avoid specifying some special type of field value, you may:
- Create a special language using this method. Set its parameters for recognition of a specific text.
- Assign the created language to ITextRecognitionParams::Language property of the recognition parameters of the corresponding field.
Syntax
Visual Basic .NET
Function CreateEmbeddedLanguageByDataType(type As FieldValueTypeEnum) As Language
C++
HRESULT CreateEmbeddedLanguageByDataType( FieldValueTypeEnum type, ILanguage** result );
Parameters
- type
- [in] This variable specifies the type of the field value. See the descriptions of the FieldValueTypeEnum constants. Only the FVT_DateTime, FVT_Number, FVT_Currency constants can be used as the value of this parameter.
- result
- [out, retval] A pointer to the ILanguage* variable that receives the interface pointer for the created language.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
See also
8/15/2023 1:19:30 PM