# Train Anomaly Detector

This app recognizes defects, debris, or otherwise faulty objects. Choose the anomaly detector when you have unknown or unanticipated defects.

The bars under the labeling buttons represent the confidence the vision sensor has in correctly labeling the images. The confidence tends to improve as you label more parts. The vision sensor is well-trained once the confidence indicator can suggest labels with two or three bars.

Rely on the guidance text that appears in your browser under the labeling buttons to see how well you are doing. The guidance text tells you when you are ready to go on, or when you need to try something different.

## Procedure

1. Label minimum two parts for both OK and NG.
   At this point, the vision sensor starts to suggest a label for new parts. The Confidence Indicator shows how confident the vision sensor is about the suggested label.

2. Label more parts to improve the confidence of the vision sensor.

3. Continue until you are satisfied with the results.

4. Click Proceed.

Best Practices

- Label a diverse set of images as OK and NG.

- Label different anomalies.

- Use fixturing, because the app is sensitive to the position of the part.

- Verify that the vision sensor correctly suggests labels for new parts.

Troubleshooting

- Click Untrain Anomaly Detector to reset the training.

- If the confidence is still low after labeling many parts, try a different app that could be better suited to the job.

## After Training

Use the Monitoring View to check how well the vision sensor performs in practice. You are ready with the training when the vision sensor consistently and correctly labels new parts with two or three bars.

You can come back to the Train tab any time later to improve the training with more parts.