An inspection system starts with good images. Camera placement, resolution and lighting often matter as much as the model itself.
Models are trained on labelled examples of acceptable and defective parts. Some learn to recognise specific defect types; others learn what normal looks like and flag deviations.
Results are only useful when tied to action: rejecting a part, alerting an operator or recording evidence for later analysis.