Active Learning for Automated Visual Inspection of Manufactured Products