SmartLineSegmentOperator Train Method Cognex VisionPro 9.21 SR1

Trains the segmenter based on the current train database.

Namespace: Cognex.Vision.SmartLine
Assembly: Cognex.Vision.SmartLine.Net (in Cognex.Vision.SmartLine.Net.dll) Version: 9.21.1.1
Syntax

public void Train()

Implements

ISegment Train 
Exceptions

ExceptionCondition
ArgumentExceptionWrong tool type serialized in the training.
ArgumentExceptionUnsupported training artifact version.
ArgumentExceptionInvalid serialized training artifact.
SegmentExceptionInvalid class.
SecurityViolationExceptionAction cannot be performed due to the lack of security license.
OperatorInvalidRegionExceptionInvalid ROI.
InvalidOperationExceptionIn case of any other error.
Remarks

Changed Raised when the operator is trained successfully. The following state flag may be affected:

See Also