Assembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 75.1.0.0
Parameters
- model1
- Type: Cognex.VisionPro.OC CogOCFontModel
The first model to compare.
- model2
- Type: Cognex.VisionPro.OC CogOCFontModel
The second model to compare.
Return Value
Type: BooleanTrue if the confusion score of model1 and model2 exceeds the ConfusionThreshold of this font, false otherwise.
| 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. |
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.