Learning object prototypes