CogOCRMaxClassifierTrainParams Algorithm Property Cognex VisionPro
The algorithm used for classification.

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

public CogOCRMaxClassifierAlgorithmConstants Algorithm { get; set; }

Property Value

Type: CogOCRMaxClassifierAlgorithmConstants
The Algorithm value. The default value is CogOCRMaxClassifierAlgorithmConstants::BasicFast.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfAlgorithm
Remarks

The classification validation step perfomrms some extra calculations to "double check" that the highest scoring candidate is really the correct character. If this validation fails, the character position result is marked Confused, the confidence score is set to 0, and the ConfusionExplanation is set to ClassificationValidationFailure. The result of the validation step does not affect the result score.

Enable Validation when it's imporant to prevent the tool from accidentally reading the wrong character (similar to increaing the confusion threshold). The tradeoff is that enabling Validation may cause some strings that would have read OK to come back confused.

If enabling Validation is causing character confusion on seemingly readable characters, it may help to add some additional character instances (of that character) to the Font.

BasicFast is a newer more streamlined version of the Basic algorithm. BasicFast is suggested for most applications. BasicFast is typically much faster than Basic, with similar robustness. The older Basic algorithm is maintained for compatibility with older applications.

See Also