CogOCRMaxSegmenter MinIntercharacterGap Property Cognex VisionPro 9.22 SR1
The minimum gap size, in pixels, that can occur between two characters. If the gap between two fragments is smaller than this, then they must be considered to be part of the same character, unless the combined character would be too wide (as specified by CharacterMaxWidth and/or CharacterMinAspect). The gap is measured from the right edge of the mark rectangle of one character to the left edge of the mark rectangle of the next character.

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

public int MinIntercharacterGap { get; set; }

Property Value

Type: Int32
The MinIntercharacterGap value. The default value is 1.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfMinIntercharacterGap
Exceptions

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

The mark rectangle of a character is a tight bounding box enclosing all of the foreground (e.g. ink) pixels in the character image.

Note that "left" and "right" are relative to the coordinate axis defined by the search region, i.e. right is the positive x direction.

This value is used only if CharacterFragmentMergeMode is SpecifyMinIntercharacterGap or SpecifyGaps.

Stage: Fragment, Group, Analyze

See Also