CogOCRMaxSegmenter PropertiesCognex VisionPro 9.5

The CogOCRMaxSegmenter type exposes the following members.

Properties

  NameDescription
Public propertyAnalysisMode
Whether to perform "minimal analysis" or "standard analysis". Minimal analysis performs straightforward segmentation according to the parameters above. Standard analysis performs an analysis of the line as a whole, including e.g. character spacing, to determine the optimal segmentation.
Public propertyAngleHalfRange
Half of the angle search range in radians.
Public propertyCellRectangleWidthType
How to compute the width of a character's cell rectangle.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyCharacterFragmentContrastThreshold
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.
Public propertyCharacterFragmentMainLineMinYOverlapFrac
Get/set the minimum fraction by which a character fragment must overlap the mainline of characters in order for the fragment to be included.
Public propertyCharacterFragmentMaxDistanceToMainLine
Get/set a modifier in the range [0, 1] this is the maximum distance a fragment can have outside the main line of characters as percentage of estimated line height in order to be included.
Public propertyCharacterFragmentMergeMode
Get/set the mode used to determine whether to merge two fragments into one character during the Group stage.
Public propertyCharacterFragmentMinNumPels
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.
Public propertyCharacterFragmentMinXOverlap
The minimum fraction by which two character fragments must overlap each other in the x direction in order for the two fragments to be considered part of the same character.
Public propertyCharacterMaxHeight
The maximum allowable height of a character's mark rectangle, in pixels. This value is used in two ways. First, this value is used when finding the line as a whole, e.g. to reject vertically adjacent noise and/or other lines of vertically adjacent characters. Second, an individual character whose height exceeds this value will be trimmed to meet this height.
Public propertyCharacterMaxWidth
The maximum allowable width of a character's mark rectangle, in pixels. A character wider than this value will be split into pieces that are not too wide.
Public propertyCharacterMinAspect
The minimum allowable aspect of a character, where the aspect is defined as the height of the entire line of characters divided by the width of the character's mark rectangle. A character whose aspect is smaller than this value (i.e. whose width is too large) will be split into pieces that are not too wide.
Public propertyCharacterMinHeight
The minimum height of a character's mark rectangle, in pixels, that a character must have in order to be reported.
Public propertyCharacterMinNumPels
The minimum number of foreground (i.e. text) pixels that a character must have in order to be reported.
Public propertyCharacterMinWidth
The minimum width of a character's mark rectangle, in pixels, that a character must have in order to be reported.
Public propertyComputeDiagnostics
Whether to compute additional segmenter diagnostics information when the segmenter is run.
Public propertyForegroundThresholdFrac
A modifier in the range [0, 1] that is used to compute the binarization threshold, in the normalized image, that binarizes between foreground and background.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyIgnoreBorderFragments
Whether to completely ignore any fragments that touch any border of the ROI. Ignoring such fragments can be useful for non-text features such as the edges of labels that might be included within the ROI.
Public propertyLineRefinementMode
Cognex Internal Use Only
Public propertyMaxIntracharacterGap
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.
Public propertyMinIntercharacterGap
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.
Public propertyMinPitch
The minimum pitch, in pixels, that can occur between two characters, where the pitch is computed as specified by the pitch metric. If the pitch 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).
Public propertyNormalizationMode
The method used to normalize the input image.
Public propertyPitchMetric
The metric used to specify the spacing of characters. Note that pitch is the distance between (approximately) corresponding points on adjacent characters and not the distance from the end of one character to the beginning of the next character (which is called the "intercharacter gap"). Also note that specifying the pitch metric does not necessarily imply that the measured pitch values are expected to be constant.
Public propertyPitchType
How individual pitch values are expected to vary; the pitch values are measured as specified by the pitch metric.
Public propertyPolarity
The polarity of the characters in the input image. If the polarity is Unknown, the polarity will be automatically determined.
Public propertySkewHalfRange
Half of the skew search range in radians.
Public propertySpaceParams
Parameters to control whether and how to insert space characters.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Public propertyTimeout
Gets or sets the timeout for running the segmenter in milliseconds.
Public propertyTimeoutEnabled
Enables the timeout for the segmenter.
Public propertyUseCharacterMaxHeight
Whether to use CharacterMaxHeight to limit the maximum height of a character and/or the line of characters.
Public propertyUseCharacterMaxWidth
Whether to use CharacterMaxWidth to split wide characters.
Public propertyUseCharacterMinAspect
Whether to use CharacterMinAspect to split wide characters.
Public propertyUseStrokeWidthFilter
Whether to remove from the normalized image everything that does not appear to have the same stroke width as the rest of the image. This can be useful if, for example, characters appear to be connected to each other by thin noise streaks. However, using the stroke width filter might incorrectly remove real characters if the stroke widths are inconsistent.
Public propertyWidthType
How the widths of characters in the font are expected to vary. Note that the character width is the width of the mark rectangle (e.g. the bounding box of the ink), not the cell rectangle (which would typically include padding around the mark rectangle).
Top
See Also