CogOCVMaxParagraphIterator GetConfusion Method (Int32, Int32)Cognex VisionPro
Get the computed confusion between the specified search character key and the specified alphabet character key.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 65.1.0.0
Syntax

public double GetConfusion(
	int searchKey,
	int alphabetKey
)

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: Double
A 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

ExceptionCondition
InvalidOperationExceptionIf this paragraph iterator cannot be found.
ObjectDisposedExceptionIf the associated CogOCVMaxPattern object has already been disposed.
See Also