CogBeadInspectPattern Find Method Cognex VisionPro 9.7
Finds one or more coarse bead paths.

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 73.0.0.0
Syntax

public void Find()
Events

Event TypeReason
ICogChangedEvent Changed Fires when this method changes the Found state of the pattern. The following state flags may be affected:
  • SfFound
Exceptions

ExceptionCondition
CogSecurityViolationException Licensing for this operation cannot be confirmed. See Understanding VisionPro Security for more information.
CogOperatorNoTrainImageException The TrainImage is null.
CogImageBadTypeException The TrainImage you supplied is not a CogImage8Grey.
CogImageNoPixelsException The TrainImage has no allocated pixels.
CogSpaceTreeNotInTreeExceptionStartCircle in the FindParams for this pattern has a SelectedSpaceName that does not exist within the CogCoordinateSpaceTree of the TrainImage.
ArgumentExceptionStartCircle in the FindParams for this pattern falls completely outside of the TrainImage or a bead could not be located within the area specified by the start circle.
Remarks

This method must be called before calling Train ; the BeadInspect pattern cannot be trained prior to finding at least one coarse path.

This method utilizes the instance of CogBeadInspectFindParams contained within the FindParams property. Results are assigned to the FindResults property and are not returned by this method directly.

See Also