CogOCRMaxSegmenter MaxIntracharacterGap Property Cognex VisionPro
The maximum gap size, in pixels, that can occur within a single character, even for damaged characters. An intracharacter gap might occur, for example, between successive columns of dots in dot matrix print, or between two pieces of a solid character that was damaged by a scratch. Any gap larger than this value will always be interpreted as a break between two separate characters, whereas gaps less than or equal to this value may be interpreted either as a break between two separate characters or as a gap within a single character.

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

public int MaxIntracharacterGap { get; set; }

Property Value

Type: Int32
The MaxIntracharacterGap value. The default value is 0.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfMaxIntracharacterGap
Exceptions

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

This value is used only if UseMaxIntracharacterGap is true.

This value is used only if CharacterFragmentMergeMode is SpecifyGaps.

Stage: Fragment, Group, Analyze

See Also