CogOCFont Confusion Method Cognex VisionPro
Get the Confusion score for the specified model pair. The Confusion score for a pair of models is the probability, on a scale of 0 to 1, that the two models will be confused with each other during verification.

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

public double Confusion(
	CogOCFontModel model1,
	CogOCFontModel model2
)

Return Value

Type: Double

The confusion score, in the range 0.0 through 1.0.

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 the confusion score for the two supplied models.

The confusion 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