Trains the pattern using the LabeledImages.
Assembly: Cognex.Vision.ViDiELClassify.Net (in Cognex.Vision.ViDiELClassify.Net.dll) Version: 9.22.2.0
Syntax
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | If the LabeledImages size is 0. |
| SecurityViolationException | Security 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