Optical character recognition using neural networks