Position independent recognition with a neural network