The CogOCRMaxSegmenter type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| AnalysisMode |
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.
| |
| AngleHalfRange |
Half of the angle search range in radians.
| |
| CellRectangleWidthType |
How to compute the width of a character's cell rectangle.
| |
| ChangedEventSuspended |
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.) | |
| CharacterFragmentContrastThreshold |
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.
| |
| CharacterFragmentMainLineMinYOverlapFrac |
Get/set the minimum fraction by which a character fragment must overlap the
mainline of characters in order for the fragment to be included.
| |
| CharacterFragmentMaxDistanceToMainLine |
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.
| |
| CharacterFragmentMergeMode |
Get/set the mode used to determine whether to merge two fragments into
one character during the Group stage.
| |
| CharacterFragmentMinNumPels |
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.
| |
| CharacterFragmentMinXOverlap |
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.
| |
| CharacterMaxHeight |
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.
| |
| CharacterMaxWidth |
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.
| |
| CharacterMinAspect |
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.
| |
| CharacterMinHeight |
The minimum height of a character's mark rectangle, in pixels, that a
character must have in order to be reported.
| |
| CharacterMinNumPels |
The minimum number of foreground (i.e. text) pixels that a character
must have in order to be reported.
| |
| CharacterMinWidth |
The minimum width of a character's mark rectangle, in pixels, that a
character must have in order to be reported.
| |
| ComputeDiagnostics |
Whether to compute additional segmenter diagnostics information
when the segmenter is run.
| |
| ForegroundThresholdFrac |
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.
| |
| HasChanged | (Inherited from CogSerializableChangedEventBase.) | |
| IgnoreBorderFragments |
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.
| |
| LineRefinementMode |
Cognex Internal Use Only
| |
| MaxIntracharacterGap |
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.
| |
| MinIntercharacterGap |
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.
| |
| MinPitch |
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).
| |
| NormalizationMode |
The method used to normalize the input image.
| |
| PitchMetric |
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.
| |
| PitchType |
How individual pitch values are expected to vary;
the pitch values are measured as specified by the pitch
metric.
| |
| Polarity |
The polarity of the characters in the input image. If the polarity is
Unknown, the polarity will be automatically determined.
| |
| SkewHalfRange |
Half of the skew search range in radians.
| |
| SpaceParams |
Parameters to control whether and how to insert space characters.
| |
| StateFlags |
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.) | |
| Timeout |
Gets or sets the timeout for running the segmenter in milliseconds.
| |
| TimeoutEnabled |
Enables the timeout for the segmenter.
| |
| UseCharacterMaxHeight |
Whether to use CharacterMaxHeight to limit the maximum height of a
character and/or the line of characters.
| |
| UseCharacterMaxWidth |
Whether to use CharacterMaxWidth to split wide characters.
| |
| UseCharacterMinAspect |
Whether to use CharacterMinAspect to split wide characters.
| |
| UseStrokeWidthFilter |
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.
| |
| WidthType |
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).
|
See Also