CogOCRMaxSegmenter CharacterFragmentContrastThreshold Property Cognex VisionPro 9.5
The minimum amount of contrast (in normalized image grey levels) that a fragment must have, relative to the binarization threshold, in order to be considered for possible inclusion in a character. See the comments for ForegroundThresholdFrac() for the value of the binarization threshold.

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

public double CharacterFragmentContrastThreshold { get; set; }

Property Value

Type: Double
The CharacterFragmentContrastThreshold value. The default value is 30.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfCharacterFragmentContrastThreshold
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if set to a value less than 0 or greater than System::Int32::MaxValue
Remarks

Any character fragment with a contrast lower than this value is completely ignored for all further processing, as though that fragment had never been detected.

Stage: Fragment

See Also