ClassifyPattern Train Method Cognex VisionPro 9.22

Trains the pattern using the LabeledImages.

Namespace: Cognex.Vision.ViDiEL
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.22.2.0
Syntax

public void Train()
Exceptions

ExceptionCondition
InvalidOperationExceptionIf the LabeledImages size is 0.
SecurityViolationExceptionSecurity is not enabled for this vision tool.
Remarks

The train will do the following:

  • Set the Trained to false
  • Clears the TrainResult
  • Clears the PredictedResult
  • Perform the train operation
  • If successful will set the Trained state as well as the TrainResult

Changed Raised when the value of this property changes. The following state flags may be affected:

See Also