CogOCRMaxClassifierRunParams ConfidenceThreshold Property Cognex VisionPro 9.5
The confidence threshold.

Namespace: Cognex.VisionPro.OCRMax
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 69.0.0.0
Syntax

public double ConfidenceThreshold { get; set; }

Property Value

Type: Double
The ConfidenceThreshold value. The default value is 0.0.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfConfidenceThreshold
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if set to a value less than 0.0 or greater than 1.0
Remarks

The status of a character is set to Confused if the score satisfies the accept threshold but the confidence score does not satisfy the confidence threshold.

A character's confidence score is the difference between the score of the classification (the highest scoring training instance) and the score of the next-highest classification (the highest scoring training instance from a different class).

Note: Even if the confidence score satisfies the confidence threshhold, the character status may still be set to Confused if the classification validation check does not pass.

See Also