CogOCVMaxParagraphIterator AreConfusable Method (Char, Char)Cognex VisionPro 9.8
If the computed confusion score between the specified search character and the specified alphabet character is below the confusion threshold for this paragraph, then return false (i.e. this pair is NOT considered confusable). Otherwise return true (i.e. this pair IS considered confusable). This method assumes that the character keys in the associated font correspond to Unicode code point values.

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

public bool AreConfusable(
	char searchCharacter,
	char alphabetCharacter
)

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: Boolean
A System::Boolean, true if the characters are confusable and false if the characters are not confusable.
Exceptions

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