This considers a learning algorithm for quality control based on a high-resolution photograph. Such an algorithm use a learning set to establish a baseline for accept/reject decisions, which in turn makes it flexible.