State-of-the-art visual inspection system for screw cap