Trains the current arrangement.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 75.0.0.0
Syntax
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the pattern object is modified. |
| CogOCVMaxPattern TrainProgress | Fires periodically during training to report training progress and to facilitate optional cancellation of training. |
Exceptions
| Exception | Condition |
|---|---|
| CogTimeoutExpiredException | If TrainTimeoutEnabled is true and the operator does not complete training within TrainTimeout milliseconds, this exception is generated. Note that this exception will also be generated if training is cancelled via the TrainProgress event. |
| ObjectDisposedException | If this CogOCVMaxPattern object has already been disposed. |
| CogSecurityViolationException | If licensing for this operator cannot be confirmed. |
| InvalidOperationException | If an internal error occurs during training. |
Remarks
See Also