CogOCRMaxClassifierImpl SaveTrainCharacters Property Cognex VisionPro 9.22 SR1
Whether to save all training characters.

Namespace: Cognex.VisionPro.OCRMax.Implementation.Internal
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 87.1.0.0
Syntax

public bool SaveTrainCharacters { get; set; }

Property Value

Type: Boolean
The SaveTrainCharacters value. The default value is true.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when this property changes.

The following state flag may be affected:

  • SfSaveTrainCharacters
Exceptions

ExceptionCondition
ObjectDisposedException Thrown if the object is disposed.
Remarks

When setting this to false, the setter will immediately discard any saved training characters.

After setting this to false, it is not allowed to call: Retrain(), GetTrainCharacters(), GetTrainCharactersProcessed(), or TrainIncremental() for algorithms needing all characters.

After setting this to false, it is not allowed to serialize the classifier.

See Also