Automatic Detection and Classification of Manufacturing Defects in Metal Boxes