# Grading

Source: https://help.zira.us/docs/ai-vision/grading
Summary: Tune pallet grading by setting how strongly each detected defect contributes to the pallet score.
Updated: 2026-06-22

Use the **Grading** tab to tune how pallet defects affect the pallet score.

Grading does not choose a lane by itself. It controls defect weights. Routing can then use values such as **Pallet Score** or **Grade** when you want scoring to influence lane decisions.

## Open the Grading tab

1. Open a pallet vision data source.
2. Click the **Grading** tab.

The Grading tab is available for pallet devices that support pallet grading.

## How grading works

Each supported defect has a weight from **0** to **10**.

- Use **0** when a defect should not affect the pallet score.
- Use a low value for minor defects.
- Use a higher value for defects that should strongly affect the score.

The grading setup is saved as a defect-weight list. When pallet inspection results are processed, those weights are used to calculate the pallet score that can be reviewed or used by routing rules.

## Review the defect weights

The table shows one row per defect.

The supported defects are:

- **Mold**
- **Major Crack**
- **Broken**
- **Minor Crack**
- **Missing Board**
- **Missing Stringer**
- **Missing Block**
- **Twisted Block**
- **Damaged Block**

Each row has a slider and a number field. Both controls update the same weight.

## Change a weight

1. Find the defect you want to tune.
2. Drag the slider or enter a number in the weight field.
3. Pause for the automatic save to finish.
4. Review the confirmation message.

Changes are saved automatically after a short delay. You do not need to click a separate save button.

## Weight range

Weights must be between **0** and **10**.

If you type a value below **0** or above **10**, the field is corrected back into the allowed range when you leave the field.

## Defaults

If a pallet device does not have saved grading settings yet, Zira starts from the built-in defect weights:

| Defect | Default weight |
| --- | ---: |
| Mold | 3 |
| Major Crack | 6 |
| Broken | 4 |
| Minor Crack | 2 |
| Missing Board | 0 |
| Missing Stringer | 3 |
| Missing Block | 3 |
| Twisted Block | 1 |
| Damaged Block | 9 |

Use these as a starting point, then adjust the weights to match the site policy.

## Use grading with routing

Use routing rules when grading should affect where pallets go.

1. Tune the defect weights in **Grading**.
2. Open the **Routing** tab.
3. Add a rule that checks **Pallet Score** or **Grade**.
4. Choose the lane and disposition for pallets that match the score rule.

For example, a site may route pallets with a high pallet score to **repair-lane** or **scrap-lane**, while pallets below the threshold continue to the default good lane.

## Tips

- Change one or two weights at a time so the effect is easier to understand.
- Use the number field when you need an exact weight.
- Use the slider when you want to compare several weights quickly.
- Give severe structural defects higher weights than cosmetic defects.
- Wait for the save confirmation before making a large round of changes.

## Read next

- [Routing](/docs/ai-vision/routing) - Use defect, score, model, and policy rules to decide pallet lanes.
- [Overview](/docs/ai-vision/overview) - Return to the AI Vision workspace overview.
