The robot’s camera notices only two things about an object: its colour and its shape.
It puts every example on a map. Colour goes across, shape goes down. For a new object it finds the 3 closest examples on the map. They vote for their tote, and the closest one counts most.
That is why it needs lots of different examples. If it has never seen a green apple, it cannot know about green apples.