CogOCRMaxSegmenter CharacterFragmentMinNumPels Property Cognex VisionPro 9.7
The minimum number of foreground (i.e. text) pixels that a fragment must have in order to be considered for possible inclusion in a character. A character fragment is a blob in the binarized image.

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

public int CharacterFragmentMinNumPels { get; set; }

Property Value

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

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfCharacterFragmentMinNumPels
Exceptions

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

Character fragments that contain fewer foreground pixels than this value are completely ignored for all further processing, as though that fragment had never been detected.

Stage: Fragment

See Also