Detection of colour changes in a moving object