CogOCRMaxSegmenter CharacterMinWidth Property Cognex VisionPro
The minimum width of a character's mark rectangle, in pixels, that a character must have in order to be reported.

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

public int CharacterMinWidth { get; set; }

Property Value

Type: Int32
The CharacterMinWidth value. The default value is 15.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfCharacterMinWidth
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if set to a value less than 1 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.

Stage: Group, Analyze

Setting this property to a value greater than CharacterMaxWidth will cause CharacterMaxWidth to be adjusted accordingly.

See Also