Automatic recognition of woven fabric pattern based on image processing and BP neural network