Trains the segmenter based on the current train database.
Assembly: Cognex.Vision.SmartLine.Net (in Cognex.Vision.SmartLine.Net.dll) Version: 9.24.0.0
Syntax
Implements
ISegment TrainExceptions
| Exception | Condition |
|---|---|
| ArgumentException | Wrong tool type serialized in the training. |
| ArgumentException | Unsupported training artifact version. |
| ArgumentException | Invalid serialized training artifact. |
| SegmentException | Invalid class. |
| SecurityViolationException | Action cannot be performed due to the lack of security license. |
| OperatorInvalidRegionException | Invalid ROI. |
| InvalidOperationException | In case of any other error. |
Remarks
Changed Raised when the operator is trained successfully. The following state flag may be affected:
See Also