Get the computed confusion between the specified search character and the specified alphabet character. This method assumes that the character keys in the associated font correspond to Unicode code point values.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 73.0.0.0
Syntax
Parameters
- searchCharacter
- Type: System Char
The search character of interest. This character must be one of the characters in the text of this paragraph. This assumes that the character keys in the associated font correspond to Unicode code point values.
- alphabetCharacter
- Type: System Char
The alphabet character of interest. This character must be one of the alphabet characters for this paragraph. This assumes that the character keys in the associated font correspond to Unicode code point values.
Return Value
Type: DoubleA System::Double in the range from zero to one. This is the computed confusion value between the specified search character and the specified alphabet character. This value will be negative if the operator did not compute the requested confusion score. A value near one means very confusable (e.g. '5' and 'S') while a value near zero means not confusable (e.g. '5' and '1').
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If the associated CogOCVMaxPattern object has already been disposed. |
| InvalidOperationException | If the CogOCVMaxPattern object is not yet trained. |
See Also