Configure Defect Determination Rules

You can configure defect determination rules for a Defect Segmentation module in the Validation Tab.

Configure Logical Rules

A logical rule can contain one or more defect filter items, and the logical relationship between these items is “or”. When a candidate defect matches any of the defect filter items, it matches the logical rule. The software allows the configuration of multiple logical rules, and the logical relationship between them is “and”. If multiple filtering rules are configured, the candidate defect will be determined as a defect only when it matches all the logical rules.

If any general rules are configured, the candidate defect also needs to match the general rules to be finally determined as a defect.

Defect Filter Items

  • Defect area filter

    A single candidate defect will be determined as a defect when its area falls within the set area range(s).

  • Defect aspect ratio filter

    Defect aspect ratio refers to the ratio of the short side to the long side of the minimum circumscribed rectangle of the defect. A single candidate defect will be determined as a defect when its aspect ratio falls within the set aspect ratio range(s).

  • Defect angle filter

    Defect angle refers to the rotation angle of the minimum circumscribed rectangle. A single candidate defect will be determined as a defect when its defect angle falls within the set defect angle range(s).

Application Examples

  • Filter the defects with angles ranging from 0° to 10° and 80° to 90°.

    1. Click Add a defect filter item.

    2. Check the Defect angle filter.

    3. Click OK.

      alt
    4. Click + and set the angle ranges separately.

    5. Click Save.

      alt
  • Filter defects with an area ranging from 10000 to 12000 and an aspect ratio ranging from 0.1 to 0.3.

    1. Click Add a logical rule.

    2. Click Add a defect filter item under Logical rule 1.

    3. Check the Defect area filter and set the area range.

    4. Click Add a defect filter item under Logical rule 2.

    5. Check Defect aspect ratio filter and set the aspect ratio range.

      alt

General Rule Configuration

Filter Distribution Area

The part(s) of a single candidate defect which intersects with the set distribution areas will be determined as defect(s).

  1. Check this parameter and then click Set defect distribution area.

  2. Draw the defect distribution area(s) in the pop-up window.

  3. Click OK.

Filter Per-Image Defect Count

Candidate defects on a single image will be determined as defects when the total number of defects on the image is equal to or larger than the set Minimum defect count parameter.

Check this parameter and then set the Minimum defect count.


After the configuration, click Save and the configuration takes effect. Validation results change with the configuration, and relevant configurations will take effect in the exported model.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.