Learning to recognize objects