Check position, orientation and insertion
Judges the distance, relative position and orientation between parts, plus the fully-inserted / pressed-into-place check (Length ratio). Pixel thresholds are hard to estimate, so they are usually tuned on site while watching the workstation view.
Judges the distance, relative position and orientation between parts. Pixel thresholds are hard to estimate, so they are usually tuned on site while watching the view.
Center distance constraint
What it judges: the distance between the box centers of two parts is within the given pixel range.
Typical uses: place A next to B; keep enough space between two parts.
How to configure: object, reference object, then choose a method:
- Pixel range: enter the minimum / maximum distance (px). The lower limit can be 0.
- Closer to which: no pixels needed. Choose one or more "comparison objects" (other reference objects). The check passes when the part is closer to the reference object than to every comparison object. For example, if the white wire end is closer to "beam left half" than to "beam right half", the wire is connected at the left end. It is judged the same way when the product is turned 180°, so you don't need to change the rule.
For "closer to which" you can also choose the distance method:
- Center distance (default): compares the center points of the two boxes;
- Nearest-point distance: compares where the edges of the two boxes are closest. It is more accurate when the reference object is long and the part connects at one end of it.
How "closer to which" is judged
It only judges when all comparison objects are in view; if one of them is not recognized, it waits before deciding. Equal distances do not pass. It is often put in 全部满足 (All of) together with "both wire ends are present".
The workstation needs an update
"Closer to which" needs a workstation version released after late November 2026 (a little newer than the one for multiple positions). An older workstation simply fails this rule and never lets it pass by mistake. For operations that use it, update the workstation before scheduling production.
Relative position constraint
What it judges: the part is to the left of / right of / above / below / upper left of / upper right of / lower left of / lower right of / inside the reference object.
Typical uses: place A to the left of B; apply the label above the product; the product may sit upright or be turned 180° upside down.
How to configure:
- Object, reference object;
- Position (multiple choice): tick as many as you need; meeting any one of them passes. For example, if the part counts as "on the left" whether it sits a bit higher or lower, tick "left", "upper left" and "lower left";
- Tolerance (px): how many pixels the part may stray when judging the position;
- Upside-down class (optional): use it when the product may be turned 180°. First split the reference object into two classes in the model, "upright" and "upside down". Choose the upright class as the reference object and the upside-down class as the upside-down class. When the upside-down class is recognized, left/right and above/below are swapped before judging.
How the position is judged
It compares the center points of the two boxes. "Left" only compares left and right and ignores height, so a bit higher or lower still counts. "Upper left" requires the part to be both further left and higher.
The workstation needs an update
Multiple positions, lower left / lower right and the upside-down class need a workstation version released after late November 2026. Older workstations do not recognize them. The old setup (a single position, no upside-down class) is not affected. For operations that use the new options, update the workstation before scheduling production.
Orientation constraint
What it judges: the part's angle is within the given range (horizontal / vertical).
Typical uses: the part must lie horizontally; the label must be applied vertically.
How to configure:
- Object;
- Reference direction: horizontal axis / vertical axis, or another class;
- Angle range (°).
Requires a rotated-box model
A regular box model cannot judge angles.
Length ratio (fully-inserted / pressed-into-place check)
What it judges: after the assembled part is placed on the inspection spot and the hand moves away, it measures "long side of the measured object ÷ long side of the reference object". If the ratio is within the range, it passes.
For example, the length ratio of the exposed part of the refill to the pen tip: the deeper the insertion, the smaller the ratio.
Typical uses: refill fully inserted; part pressed into place; plug pushed all the way in.
How to configure:
- Measured object: the part to measure (such as the exposed refill).
- Reference object: a part of fixed size (such as the pen tip), used for scaling so the result is not affected by camera distance.
- Inspection zone (optional).
- Lower / upper ratio limit.
- Still time, sample frames: how long the part must be steady before measuring, and how many frames the median is taken from.
- 超出范围报警(未插紧) (Alarm when out of range (not fully inserted)): when checked, an abnormal event is reported if the ratio is outside the range.
How to set the ratio
Do not guess. Calibrate on the workstation:
- On the workstation, go to 采集 (Capture) › 标定 (Calibrate) and select this step of this operation.
- Place several good and bad pieces; the workstation measures the ratio and recommends lower and upper limits.
- After you confirm, they are written back to the platform draft automatically.
- Submit for review again and release.
The step is not counted as production during calibration. For details, see Calibrate the insertion check.
Notes
- A reference object of fixed size is required.
- With a regular box model, the part must be placed horizontally or vertically.
- Usually combined with "Hand left zone" using 全部满足 (All of), so the measurement is taken after the hand is away. See scenario 3 in Typical scenarios.
