Recognition using electronic means using sequential comparisons of the image signals with a plurality of references