Machine vision and machine learning methods for quality verification