Get the computed confusion between the specified search character key and the specified alphabet character key.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 69.0.0.0
Syntax
Parameters
- searchKey
- Type: System Int32
The search character key of interest. This character key must be one of the character keys in the text of this paragraph.
- alphabetKey
- Type: System Int32
The alphabet character key of interest. This character key must be one of the alphabet character keys for this paragraph.
Return Value
Type: DoubleA System::Double in the range from zero to one. This is the computed confusion value between the specified search character key and the specified alphabet character key. 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 |
|---|---|
| InvalidOperationException | If the CogOCVMaxPattern object is not yet trained. |
| ObjectDisposedException | If the associated CogOCVMaxPattern object has already been disposed. |
See Also