Cap Appearance Defect Detection System