CogBeadInspectRunParams ConsecutiveFailingCalipersMin Property Cognex VisionPro 9.21
Gets or sets the minimum number of consecutive failing calipers for a defect to be reported. Indirectly this property determines the length (along the bead) of the smallest reported defect.

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

public int ConsecutiveFailingCalipersMin { get; set; }

Property Value

Type: Int32
Default value is 3 caliper width.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Exceptions

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than 1 or greater than 10.
Remarks

The bead inspection operation uses calipers to detect edges and performs tolerance checking on each caliper edge. The calipers are laid down side by side along the bead with no offset between them. The caliper length along the bead is specified by the SamplingDistance train property.

The bead inspect tool process the image in 2 phases: the first phase is all about calipers, and the second phase is all about defects.
Caliper processing consists of the following:

  • Lay down the calipers to detect edge pairs. This step uses the ContrastThreshold and AbsoluteDistanceThreshold to determine which edges are considered for scoring.
  • Then the scoring procedure chooses the best pair of edges based on:
    • Pair width
    • Edge positions
    • Consistency with neighboring edge positions
After all of this, defects are detected using any of the (five) enabled tolerances of this class (and maybe some non-enable criteria, like, are any edges missing).
A defect is reported for any sequence of ConsecutiveFailingCalipersMin (or more) calipers where all of the individual calipers are deemed out of tolerance


The average bead width is computed at train time. It averages the bead width from a number of calipers. The number of calipers is specified by the SmoothingFactor train property.

See Also