CogOCFont Confusable Method Cognex VisionPro 9.8
Returns true if the specified model pair are confusable. Two models are confusable if their Confusion score is greater than the ConfusionThreshold specified by the user.

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

public bool Confusable(
	CogOCFontModel model1,
	CogOCFontModel model2
)

Return Value

Type: Boolean

True if the confusion score of model1 and model2 exceeds the ConfusionThreshold of this font, false otherwise.

Exceptions

ExceptionCondition
ArgumentException

model1 or model2 is NULL.

ArgumentException

model1 or model2 is not a member of the FontModels collection.

CogOCFontNotCompiledException

The font is not compiled.

Remarks

Returns true if the specified pair of font models are confusable. Two models are confusable if their confusion score is greater than the ConfusionThreshold defined for this font.

The Confusion(CogOCFontModel, CogOCFontModel) score for two models may not be symmetric. That is, the confusion score calculated for A compared with B may be different than the confusion score obtained for B compared with A. You should supply the model being verified as model1 and the model being evaluated for confusion as model2.

See Also