A Novel Method to Realize Optical Correlation Recognition Based on Neural Network