Optical character recognition by a neural network