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.OCAssembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 73.0.0.0
Syntax
Parameters
- model1
- Type: Cognex.VisionPro.OC CogOCFontModel
The first model.
- model2
- Type: Cognex.VisionPro.OC CogOCFontModel
The second model.
Return Value
Type: DoubleThe confusion score, in the range 0.0 through 1.0.
Exceptions
| Exception | Condition |
|---|---|
| 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