CogOCRMaxCharKey Variant Property Cognex VisionPro 9.8 SR1
The variant number, which can be used to indicate a distinct appearance of a character code. For example, a particular font might contain two visually distinct appearances for the digit zero "0", one of which might simply be an ellipse and another that is an ellipse with a diagonal stroke through it.

Namespace: Cognex.VisionPro.OCRMax
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 75.0.0.0
Syntax

public int Variant { get; }

Property Value

Type: Int32
The Variant value. The default value is -1.
Remarks

Note that Instance is independent of Variant, e.g. in a given set of characters one would typically have no duplicate Instance values regardless of whether the characters had different Variant values.

Variant is provided for user convenience, and its interpretation is application-specific. OCRMax functions will preserve this value but will otherwise make no use of it.

The concept of variant is related to the concept of "variant selectors" in the Unicode Standard, but the value of the Variant need not be a Unicode variant selector value.

The value can be -1 to indicate that the instance is not specified.

See Also