CogOCRMaxClassifierImpl Retrain Method Cognex VisionPro 9.22 SR1
Re-train the classifier with the specified parameters and the training instances saved in the tool. It is okay to call Retrain() repeatedly. Effects of earlier calls will be cleared by the last call. After the call, both IsStartTrained() and IsTrained() remain true.

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

public void Retrain(
	CogOCRMaxClassifierTrainParams params
)
Exceptions

ExceptionCondition
CogOCRMaxClassifierNotTrainedException Thrown if if IsTrained()==false.
CogOCRMaxClassifierNoSavedDataException Thrown if if SaveTrainCharacters()==false.
ObjectDisposedException Thrown if the object is disposed.
ArgumentNullException Thrown if params is null.
Remarks

This does not change the value of SaveTrainCharacters().

This requires that SaveTrainCharacters() be true.

See Also