If small scratches on a car’s headlight are to be detected, with a minimum width of around 10 µm, it will not be possible to reliably inspect the entire headlight using a single 5 MP camera image.
For robust solutions, a simple rule of thumb applies:
Depending on the feature characteristics, at least two to three pixels should cover the smallest relevant structure.
In this example, that would correspond to an object resolution of approximately 3.3 µm per pixel. Depending on part size and cycle time, this points more towards a line-scan setup or a tiled, multi-image strategy rather than a classic single-shot approach.