The same image is presented to other Google users around the world at the same time. If enough people submit the same number, Google accepts they have accurately read the photo and are therefore not bots.