RecognitionParams Object (IRecognitionParams Interface)
This object allows you to tune the recognition parameters for the block. Parameters of recognition are specified with each block of the document definition and depend on the block type. The RecognitionParams object exposes methods which cast it to a type-specific interface and thereby provide access to the recognition parameters of a block of specific type. The recognition parameters of the block are set in the RecognitionParams property of the BlockDefinition object.
Properties
Name | Type | Description |
---|---|---|
IsIdentifier | Boolean | Specifies if the block is used as an identifier. Identifier is a static element used for certain selection of a Document Definition from among several Document Definitions with identical locations of anchors. If an anchor barcode or static text is used as an identifier, you can specify the values of such identifiers with the help of the IBarcodeRecognitionParams::Value or IStaticTextRecognitionParams::Value properties, respectively. In this case when applying a Document Definition the program will compare recognized data in the image with the value of the identifier, and the Document Definition match will be possible only if these values match. |
IsReference | Boolean | Specifies if the block is used for finding some other block (e.g. static text block which contains the word "Surname" can be used to find a text block which contains a surname). |
Type | BlockTypeEnum, read-only | Returns the type of the block. |
Methods
Name | Description |
---|---|
AsAnchorParams | Returns the object as the AnchorRecognitionParams object. If the block is not an anchor block, NULL is returned. |
AsBarcodeParams | Returns the object as the BarcodeRecognitionParams object. If the block is not a barcode block, NULL is returned. |
AsCheckmarkGroupParams | Returns the object as the CheckmarkGroupRecognitionParams object. If the block is not a checkmark group block, NULL is returned. |
AsCheckmarkParams | Returns the object as the CheckmarkRecognitionParams object. If the block is not a checkmark block, NULL is returned. |
AsPictureParams | Returns the object as the PictureRecognitionParams object. If the block is not a picture block, NULL is returned. |
AsSeparatorParams | Returns the object as the SeparatorRecognitionParams object. If the block is not a separator block, NULL is returned. |
AsStaticTextParams | Returns the object as the StaticTextRecognitionParams object. If the block is not a static text block, NULL is returned. |
AsTextParams | Returns the object as the TextRecognitionParams object. If the block is not a text block, NULL is returned. |
Related objects
See also
15.08.2023 13:19:30