Automated visual inspection and quality assurance in industry