CogOCRMaxFielding IgnoreFailingPrefixSuffix Property Cognex VisionPro
Get or set whether to ignore characters which failed the classification phase (scored below the accept threshold) at the beginning or end of the input string. This can be useful if the input image contains spurious, non-character features at either end of the line of text. Occasionally the segmentation phase will incorrectly identify such spurious features as characters. These spurious characters will fail classification and can be correctly ignored by setting IgnoreFailingPrefixSuffix to true. Default is true.

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

public bool IgnoreFailingPrefixSuffix { get; set; }

Property Value

Type: Boolean
Events

Event TypeReason
ICogChangedEvent Changed Fires after the IgnoreFailingPrefixSuffix property is set to a new value.
Remarks

Note: This property is ignored when VariableLength is false.

Note: IgnoreFailingPrefixSuffix will not ignore a failing character if the character is failing because it does not match the fielding at that position. In other words enabling IgnoreFailingPrefixSuffix will only ignore "Unknown" characters that are likely to not be charcters at all.

See Also