Detecting Fabric Defects with a Neural Network Using Two Kinds of Optical Patterns