CogOCFont ConfusionThreshold Property Cognex VisionPro 9.7
Threshold at which two models are considered Confusable. A compiled font contains Confusion scores for all model pairs in the font. A score greater than this threshold indicates that a model pair should be considered confusing.

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

public double ConfusionThreshold { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogOCFont Changed

Fires when the confusion threshold changes.

The following state flag may be affected:

CogOCFont Changed

Fires when the confusion threshold changes and one or more Confusable(CogOCFontModel, CogOCFontModel) values also changed.

The following state flags may be affected:

Exceptions

ExceptionCondition
ArgumentException

The confusion threshold is < 0 or > 1.

Remarks

You specify the Confusion(CogOCFontModel, CogOCFontModel) (in the range 0.0 through 1.0) to tell the tool the confusion score above which two characters are to be treated as potentially confusing.

As you decrease the confusion threshold, the OCV tool compares more characters with the expected character. As you increase the confusion threshold, the tool compares fewer characters.

Default Value: 0.5

See Also